TextEditor class¶
Represents an editor that allows users to enter and edit text.
Namespace: Eremex.AvaloniaUI.Controls.Editors
Assembly: Eremex.Avalonia.Controls.dll
NuGet Package: Eremex.Avalonia.Controls
Declaration¶
Public Members¶
| name | description |
|---|---|
| TextEditor() | Initializes a new instance of the TextEditor class. |
| AcceptsReturn { get; set; } | Gets or sets whether the user can insert line breaks by pressing Enter. |
| HighlightedText { get; } | Gets the text highlighted in the editor. |
| Mask { get; set; } | Gets or sets the mask pattern applied to the editor's input. |
| MaskCulture { get; set; } | Gets or sets the culture used to interpret the mask. |
| MaskType { get; set; } | Gets or sets the type of the editor's input mask. |
| MaskUseAsDisplayFormat { get; set; } | Gets or sets whether the mask is used to format the editor's display text. |
| SelectionEnd { get; set; } | Gets or sets the ending position of the editor's text selection. |
| SelectionStart { get; set; } | Gets or sets the starting position of the editor's text selection. |
| TextWrapping { get; set; } | Gets or sets how the editor's text wraps. |
| ValidateOnInput { get; set; } | Gets or sets whether the editor validates its value as the user types. |
| Watermark { get; set; } | Gets or sets the prompt text displayed when the editor's value is empty. |
| override ClearSelection() | Clears the text selection in the editor. |
| override Render(…) | Renders the editor's visual appearance. |
| override SelectAll() | Selects all the editor's text. |
See Also¶
- class BaseEditor
- namespace Eremex.AvaloniaUI.Controls.Editors
Used in articles
- Data Editing
- Data Editing
- Data Editing › Custom Editors
- Data Editing › Custom Editors in TreeList and TreeView Cells
- DataGrid › Cells
- DataGrid › Rows
- Editors › ButtonEditor
- Editors › Custom Editors
- Editors › TextEditor
- Examples › How to create a password text box
- Examples › How to Create a TreeView Control and Bind It to a Self Referential Data Source
- PropertyGrid › Data Editing
- Ribbon › Ribbon Items
- Toolbars and Menus › Toolbar Items
- TreeList and TreeView › Nodes
- What's Included › Assemblies