# BaseEditor class

Serves as the base class for editors that display and edit values.

**Namespace:** [`Eremex.AvaloniaUI.Controls.Editors`](./index.md)  
**Assembly:** `Eremex.Avalonia.Controls.dll`  
**NuGet Package:** [Eremex.Avalonia.Controls](https://www.nuget.org/packages/Eremex.Avalonia.Controls)

## Declaration

```csharp
public class BaseEditor : TemplatedControl, IBaseEditor
```

## Public Members

| name | description |
| --- | --- |
| [BaseEditor](BaseEditor/BaseEditor.md)() | Initializes a new instance of the BaseEditor class. |
| [ActualErrorShowMode](BaseEditor/ActualErrorShowMode.md) { get; } | Gets the error display mode currently applied to the editor. |
| [AllowNullInput](BaseEditor/AllowNullInput.md) { get; set; } | Gets or sets whether users can enter a null value into the editor. |
| [AllowReadOnlyAppearance](BaseEditor/AllowReadOnlyAppearance.md) { get; set; } | Gets or sets whether the read-only appearance is applied when ReadOnly is true. |
| [DisplayFormatString](BaseEditor/DisplayFormatString.md) { get; set; } | Gets or sets the format string used to format the editor's display text. |
| [DisplayText](BaseEditor/DisplayText.md) { get; } | Gets the text displayed in the editor. |
| [DisplayTextConverter](BaseEditor/DisplayTextConverter.md) { get; set; } | Gets or sets the converter used to obtain the editor's display text. |
| [EditorMode](BaseEditor/EditorMode.md) { get; set; } | Gets or sets the editor's operating mode. |
| [EditorValue](BaseEditor/EditorValue.md) { get; set; } | Gets or sets the editor's value. |
| [EditorValuePostDelay](BaseEditor/EditorValuePostDelay.md) { get; set; } | Gets or sets the delay in milliseconds before the entered value is posted in Delayed post mode. |
| [EditorValuePostMode](BaseEditor/EditorValuePostMode.md) { get; set; } | Gets or sets when the editor posts the entered value. |
| [EditorValueType](BaseEditor/EditorValueType.md) { get; set; } | Gets or sets the data type of the editor's value. |
| [ErrorShowMode](BaseEditor/ErrorShowMode.md) { get; set; } | Gets or sets how the editor displays a validation error. |
| [ErrorText](BaseEditor/ErrorText.md) { get; } | Gets the text of the current validation error. |
| [HorizontalContentAlignment](BaseEditor/HorizontalContentAlignment.md) { get; set; } | Gets or sets the horizontal alignment of the editor's content. |
| [ReadOnly](BaseEditor/ReadOnly.md) { get; set; } | Gets or sets whether the editor is read-only. |
| [RealEditor](BaseEditor/RealEditor.md) { get; } | Gets the real editor control found in the editor's template. |
| [SecondaryAppearance](BaseEditor/SecondaryAppearance.md) { get; } | Gets whether the editor uses the secondary appearance. |
| [ShowEditorButtons](BaseEditor/ShowEditorButtons.md) { get; set; } | Gets or sets whether the editor's buttons are visible. |
| [ShowHoverDecorator](BaseEditor/ShowHoverDecorator.md) { get; set; } | Gets or sets whether the hover effect is shown when the pointer is over the editor. |
| [ValidationInfo](BaseEditor/ValidationInfo.md) { get; set; } | Gets or sets information about a validation error. |
| [VerticalContentAlignment](BaseEditor/VerticalContentAlignment.md) { get; set; } | Gets or sets the vertical alignment of the editor's content. |
| event [EditorValueChanged](BaseEditor/EditorValueChanged.md) | Occurs when the editor's value changes. |
| event [Validate](BaseEditor/Validate.md) | Occurs when the editor's value is validated. |
| virtual [ClearSelection](BaseEditor/ClearSelection.md)() | Clears the text selection in the editor. |
| [DoValidate](BaseEditor/DoValidate.md)() | Validates the editor's value. |
| [GetDisplayText](BaseEditor/GetDisplayText.md)(…) | Returns the display text for the specified value. |
| virtual [ResetInvalidUserInput](BaseEditor/ResetInvalidUserInput.md)() | Discards invalid user input and restores the editor's previous value. |
| virtual [SelectAll](BaseEditor/SelectAll.md)() | Selects all the editor's text. |

## See Also

* interface [IBaseEditor](./IBaseEditor.md)
* namespace [Eremex.AvaloniaUI.Controls.Editors](./index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls.dll -->
