Class TextInputOptions
public class TextInputOptions
- Inheritance
-
TextInputOptions
- Inherited Members
Constructors
TextInputOptions()
public TextInputOptions()
Fields
AutoCapitalizationProperty
Defines the AutoCapitalization property.
public static readonly AttachedProperty<bool> AutoCapitalizationProperty
Field Value
ContentTypeProperty
Defines the ContentType property.
public static readonly AttachedProperty<TextInputContentType> ContentTypeProperty
Field Value
Default
public static readonly TextInputOptions Default
Field Value
IsSensitiveProperty
Defines the IsSensitive property.
public static readonly AttachedProperty<bool> IsSensitiveProperty
Field Value
LowercaseProperty
Defines the Lowercase property.
public static readonly AttachedProperty<bool> LowercaseProperty
Field Value
MultilineProperty
Defines the Multiline property.
public static readonly AttachedProperty<bool> MultilineProperty
Field Value
ReturnKeyTypeProperty
Defines the ReturnKeyType property.
public static readonly AttachedProperty<TextInputReturnKeyType> ReturnKeyTypeProperty
Field Value
ShowSuggestionsProperty
Defines the ShowSuggestions property.
public static readonly AttachedProperty<bool?> ShowSuggestionsProperty
Field Value
UppercaseProperty
Defines the Uppercase property.
public static readonly AttachedProperty<bool> UppercaseProperty
Field Value
Properties
AutoCapitalization
Automatically capitalize letters at the start of the sentence
public bool AutoCapitalization { get; set; }
Property Value
ContentType
The content type (mostly for determining the shape of the virtual keyboard)
public TextInputContentType ContentType { get; set; }
Property Value
IsSensitive
Text contains sensitive data like card numbers and should not be stored
public bool IsSensitive { get; set; }
Property Value
Lowercase
Text is in lower case
public bool Lowercase { get; set; }
Property Value
Multiline
Text is multiline
public bool Multiline { get; set; }
Property Value
ReturnKeyType
Determines what the Return key says and how it behaves.
public TextInputReturnKeyType ReturnKeyType { get; set; }
Property Value
ShowSuggestions
Show virtual keyboard suggestions
public bool? ShowSuggestions { get; set; }
Property Value
- bool?
Uppercase
Text is in upper case
public bool Uppercase { get; set; }
Property Value
Methods
FromStyledElement(StyledElement)
public static TextInputOptions FromStyledElement(StyledElement avaloniaObject)
Parameters
avaloniaObject
StyledElement
Returns
GetAutoCapitalization(StyledElement)
Gets the value of the attached AutoCapitalizationProperty.
public static bool GetAutoCapitalization(StyledElement avaloniaObject)
Parameters
avaloniaObject
StyledElementThe target.
Returns
- bool
true if AutoCapitalization
GetContentType(StyledElement)
Gets the value of the attached ContentTypeProperty.
public static TextInputContentType GetContentType(StyledElement avaloniaObject)
Parameters
avaloniaObject
StyledElementThe target.
Returns
- TextInputContentType
TextInputContentType
GetIsSensitive(StyledElement)
Gets the value of the attached IsSensitiveProperty.
public static bool GetIsSensitive(StyledElement avaloniaObject)
Parameters
avaloniaObject
StyledElementThe target.
Returns
- bool
true if IsSensitive
GetLowercase(StyledElement)
Gets the value of the attached LowercaseProperty.
public static bool GetLowercase(StyledElement avaloniaObject)
Parameters
avaloniaObject
StyledElementThe target.
Returns
- bool
true if Lowercase
GetMultiline(StyledElement)
Gets the value of the attached MultilineProperty.
public static bool GetMultiline(StyledElement avaloniaObject)
Parameters
avaloniaObject
StyledElementThe target.
Returns
- bool
true if multiline
GetReturnKeyType(StyledElement)
Gets the value of the attached ReturnKeyTypeProperty.
public static TextInputReturnKeyType GetReturnKeyType(StyledElement avaloniaObject)
Parameters
avaloniaObject
StyledElementThe target.
Returns
- TextInputReturnKeyType
TextInputReturnKeyType
GetShowSuggestions(StyledElement)
Gets the value of the attached ShowSuggestionsProperty.
public static bool? GetShowSuggestions(StyledElement avaloniaObject)
Parameters
avaloniaObject
StyledElementThe target.
Returns
- bool?
true if ShowSuggestions
GetUppercase(StyledElement)
Gets the value of the attached UppercaseProperty.
public static bool GetUppercase(StyledElement avaloniaObject)
Parameters
avaloniaObject
StyledElementThe target.
Returns
- bool
true if Uppercase
SetAutoCapitalization(StyledElement, bool)
Sets the value of the attached AutoCapitalizationProperty on a control.
public static void SetAutoCapitalization(StyledElement avaloniaObject, bool value)
Parameters
avaloniaObject
StyledElementThe control.
value
boolThe property value to set.
SetContentType(StyledElement, TextInputContentType)
Sets the value of the attached ContentTypeProperty on a control.
public static void SetContentType(StyledElement avaloniaObject, TextInputContentType value)
Parameters
avaloniaObject
StyledElementThe control.
value
TextInputContentTypeThe property value to set.
SetIsSensitive(StyledElement, bool)
Sets the value of the attached IsSensitiveProperty on a control.
public static void SetIsSensitive(StyledElement avaloniaObject, bool value)
Parameters
avaloniaObject
StyledElementThe control.
value
boolThe property value to set.
SetLowercase(StyledElement, bool)
Sets the value of the attached LowercaseProperty on a control.
public static void SetLowercase(StyledElement avaloniaObject, bool value)
Parameters
avaloniaObject
StyledElementThe control.
value
boolThe property value to set.
SetMultiline(StyledElement, bool)
Sets the value of the attached MultilineProperty on a control.
public static void SetMultiline(StyledElement avaloniaObject, bool value)
Parameters
avaloniaObject
StyledElementThe control.
value
boolThe property value to set.
SetReturnKeyType(StyledElement, TextInputReturnKeyType)
Sets the value of the attached ReturnKeyTypeProperty on a control.
public static void SetReturnKeyType(StyledElement avaloniaObject, TextInputReturnKeyType value)
Parameters
avaloniaObject
StyledElementThe control.
value
TextInputReturnKeyTypeThe property value to set.
SetShowSuggestions(StyledElement, bool?)
Sets the value of the attached ShowSuggestionsProperty on a control.
public static void SetShowSuggestions(StyledElement avaloniaObject, bool? value)
Parameters
avaloniaObject
StyledElementThe control.
value
bool?The property value to set.
SetUppercase(StyledElement, bool)
Sets the value of the attached UppercaseProperty on a control.
public static void SetUppercase(StyledElement avaloniaObject, bool value)
Parameters
avaloniaObject
StyledElementThe control.
value
boolThe property value to set.