Class InputField
Extension of the FormField<T> class representing a button so that a InputFieldRenderer is used.
public class InputField : FormField<InputField>, IFormField, IBlockElement, IAbstractElement, IElement, IPropertyContainer, IAccessibleElement, IPlaceholderable
- Inheritance
-
InputField
- Implements
- Inherited Members
Constructors
InputField(string)
Creates a new input field.
public InputField(string id)
Parameters
id
stringthe id
Methods
GetAccessibilityProperties()
public override AccessibilityProperties GetAccessibilityProperties()
Returns
GetDefaultProperty<T1>(int)
public override T1 GetDefaultProperty<T1>(int property)
Parameters
property
int
Returns
- T1
Type Parameters
T1
GetPlaceholder()
public virtual Paragraph GetPlaceholder()
Returns
GetRotation()
Get rotation.
public virtual int GetRotation()
Returns
- int
rotation value.
MakeNewRenderer()
protected override IRenderer MakeNewRenderer()
Returns
SetPlaceholder(Paragraph)
public virtual void SetPlaceholder(Paragraph placeholder)
Parameters
placeholder
Paragraph
SetRotation(int)
Set rotation of the input field.
public virtual InputField SetRotation(int rotation)
Parameters
rotation
intnew rotation value, counterclockwise. Must be a multiple of 90 degrees. It has sense only in interactive mode, see SetInteractive(bool).
Returns
- InputField
the edited InputField.
UseAsPassword(bool)
Determines, whether the input field will be password.
public virtual InputField UseAsPassword(bool isPassword)
Parameters
Returns
- InputField
this input field
Remarks
Determines, whether the input field will be password.
Usually means that instead of glyphs '*' will be shown in case of flatten field. If the field is not flatten, value will be ignored.