maui-devexpress-dot-maui-dot-editors-dot-editbase-2a0c7ac0.md
Gets or sets the horizontal alignment of text entered in the editor. This is a bindable property.
Namespace : DevExpress.Maui.Editors
Assembly : DevExpress.Maui.Editors.dll
NuGet Package : DevExpress.Maui.Editors
public TextAlignment? TextHorizontalAlignment { get; set; }
| Type | Description |
|---|---|
| Nullable<TextAlignment> |
The text’s horizontal alignment.
|
Use the TextHorizontalAlignment property to align the text that a user inputs within the editor box.
You can also use TextFontSize, TextFontAttributes and TextFontFamily properties to customize the editor’s text appearance, TextColor and DisabledTextColor to set the color of the text.
This example shows how to change the input text color and adjust font settings:
<dxe:TextEdit Text="Input text"
TextColor="DarkOrange"
TextFontAttributes="Italic"
TextFontSize="25"
TextHorizontalAlignment="Center"/>
See Also