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 class TextEditor : BaseEditor
Constructors
| name |
description |
| TextEditor() |
Initializes a new instance of the TextEditor class. |
Properties
| name |
description |
| 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. |
Methods
| name |
description |
| 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