Back to Devexpress

EditBase.TextHorizontalAlignment Property

maui-devexpress-dot-maui-dot-editors-dot-editbase-2a0c7ac0.md

latest2.0 KB
Original Source

EditBase.TextHorizontalAlignment Property

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

Declaration

csharp
public TextAlignment? TextHorizontalAlignment { get; set; }

Property Value

TypeDescription
Nullable<TextAlignment>

The text’s horizontal alignment.

|

Remarks

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.

Example

This example shows how to change the input text color and adjust font settings:

xml
<dxe:TextEdit Text="Input text"
              TextColor="DarkOrange"
              TextFontAttributes="Italic"
              TextFontSize="25"
              TextHorizontalAlignment="Center"/>

See Also

EditBase Class

EditBase Members

DevExpress.Maui.Editors Namespace