API Reference
Class
FormPage
A page of a form.
Inheritance
- Object
- FormPage
Usage
Explore 3 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Method Form.Page
- Property Form.Pages
Accepted by parameters 1
- Method Form.Page
Constructors
Methods
public T Add<T>(T field) #Returns:
TAdds a field.
Type Parameters
- T
- The field type.
Parameters
- field T
- The field.
Returns
The field.
public ChoiceField MultiSelect(String name, String? label = null, IEnumerable<Choice>? choices = null) #Returns:
ChoiceFieldAdds a multi-choice field.
Parameters
- name System.String
- The key.
- label System.String? = null
- The label.
- choices System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.Choice>? = null
- The choices.
Returns
The field.
public NumberField Number(String name, String? label = null) #Returns:
NumberFieldAdds a number field.
Parameters
- name System.String
- The key.
- label System.String? = null
- The label.
Returns
The field.
public PathField Path(String name, String? label = null) #Returns:
PathFieldAdds a path field.
Parameters
- name System.String
- The key.
- label System.String? = null
- The label.
Returns
The field.
public SecretField Secret(String name, String? label = null) #Returns:
SecretFieldAdds a secret field.
Parameters
- name System.String
- The key.
- label System.String? = null
- The label.
Returns
The field.
public ChoiceField Select(String name, String? label = null, IEnumerable<Choice>? choices = null) #Returns:
ChoiceFieldAdds a single-choice field.
Parameters
- name System.String
- The key.
- label System.String? = null
- The label.
- choices System.Collections.Generic.IEnumerable<ConsoleMonster.Interactive.Choice>? = null
- The choices.
Returns
The field.
public TextField Text(String name, String? label = null) #Returns:
TextFieldAdds a text field.
Parameters
- name System.String
- The key.
- label System.String? = null
- The label.
Returns
The field.
public TextAreaField TextArea(String name, String? label = null) #Returns:
TextAreaFieldAdds a field for several lines of text.
Parameters
- name System.String
- The key.
- label System.String? = null
- The label.
Returns
The field.
public ToggleField Toggle(String name, String? label = null) #Returns:
ToggleFieldAdds a toggle.
Parameters
- name System.String
- The key.
- label System.String? = null
- The label.
Returns
The field.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?