Skip to main content

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

public TextAlignment? TextHorizontalAlignment { get; set; }

Property Value

Type Description
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:

DevExpress MAUI TextEdit - Darkorange Italic Centered Text

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