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