Class TextInputBaseFieldExtensions
Namespace: Aspid.FastTools.UIElements
Assembly: Aspid.FastTools.dll
Provides extension methods for TextInputBaseField<T>.
public static class TextInputBaseFieldExtensions
Inheritance
object ← TextInputBaseFieldExtensions
Methods
SetAutoCorrection<TField, TValue>(TField, bool)
Sets autoCorrection.
public static TField SetAutoCorrection<TField, TValue>(this TField element, bool value) where TField : TextInputBaseField<TValue>
Parameters
element TField
The element to modify.
value bool
When true, the soft keyboard auto-corrects input.
Returns
TField
The element, for chaining.
Type Parameters
TField
The field type.
TValue
The value type held by the field.
SetDelayed<TField, TValue>(TField, bool)
Sets isDelayed.
public static TField SetDelayed<TField, TValue>(this TField element, bool value) where TField : TextInputBaseField<TValue>
Parameters
element TField
The element to modify.
value bool
When true, the value is committed only on Enter or when the field loses focus.
Returns
TField
The element, for chaining.
Type Parameters
TField
The field type.
TValue
The value type held by the field.
SetHideMobileInput<TField, TValue>(TField, bool)
Sets hideMobileInput.
public static TField SetHideMobileInput<TField, TValue>(this TField element, bool value) where TField : TextInputBaseField<TValue>
Parameters
element TField
The element to modify.
value bool
When true, the mobile input field is hidden.
Returns
TField
The element, for chaining.
Type Parameters
TField
The field type.
TValue
The value type held by the field.
SetHidePlaceholderOnFocus<TField, TValue>(TField, bool)
Sets hidePlaceholderOnFocus of textEdition.
public static TField SetHidePlaceholderOnFocus<TField, TValue>(this TField element, bool value) where TField : TextInputBaseField<TValue>
Parameters
element TField
The element to modify.
value bool
When true, the placeholder is hidden while the field has focus.
Returns
TField
The element, for chaining.
Type Parameters
TField
The field type.
TValue
The value type held by the field.
SetHideSoftKeyboard<TField, TValue>(TField, bool)
Sets hideSoftKeyboard.
public static TField SetHideSoftKeyboard<TField, TValue>(this TField element, bool value) where TField : TextInputBaseField<TValue>
Parameters
element TField
The element to modify.
value bool
When true, the soft keyboard is not shown.
Returns
TField
The element, for chaining.
Type Parameters
TField
The field type.
TValue
The value type held by the field.
SetKeyboardType<TField, TValue>(TField, TouchScreenKeyboardType)
Sets keyboardType.
public static TField SetKeyboardType<TField, TValue>(this TField element, TouchScreenKeyboardType value) where TField : TextInputBaseField<TValue>
Parameters
element TField
The element to modify.
value TouchScreenKeyboardType
The keyboard type to set.
Returns
TField
The element, for chaining.
Type Parameters
TField
The field type.
TValue
The value type held by the field.
SetMaskChar<TField, TValue>(TField, char)
Sets maskChar.
public static TField SetMaskChar<TField, TValue>(this TField element, char value) where TField : TextInputBaseField<TValue>
Parameters
element TField
The element to modify.
value char
The mask character to set.
Returns
TField
The element, for chaining.
Type Parameters
TField
The field type.
TValue
The value type held by the field.
SetMaxLength<TField, TValue>(TField, int)
Sets maxLength.
public static TField SetMaxLength<TField, TValue>(this TField element, int value) where TField : TextInputBaseField<TValue>
Parameters
element TField
The element to modify.
value int
The maximum character count to set.
Returns
TField
The element, for chaining.
Type Parameters
TField
The field type.
TValue
The value type held by the field.
SetPassword<TField, TValue>(TField, bool)
Sets isPasswordField.
public static TField SetPassword<TField, TValue>(this TField element, bool value) where TField : TextInputBaseField<TValue>
Parameters
element TField
The element to modify.
value bool
When true, input characters are masked.
Returns
TField
The element, for chaining.
Type Parameters
TField
The field type.
TValue
The value type held by the field.
SetPlaceholder<TField, TValue>(TField, string)
Sets placeholder of textEdition.
public static TField SetPlaceholder<TField, TValue>(this TField element, string value) where TField : TextInputBaseField<TValue>
Parameters
element TField
The element to modify.
value string
The placeholder text to set.
Returns
TField
The element, for chaining.
Type Parameters
TField
The field type.
TValue
The value type held by the field.
SetReadOnly<TField, TValue>(TField, bool)
Sets isReadOnly.
public static TField SetReadOnly<TField, TValue>(this TField element, bool value) where TField : TextInputBaseField<TValue>
Parameters
element TField
The element to modify.
value bool
When true, the field is read-only.
Returns
TField
The element, for chaining.
Type Parameters
TField
The field type.
TValue
The value type held by the field.