EditBase.TextHorizontalAlignment Property

Gets or sets the horizontal alignment of text entered in the editor.

Namespace: DevExpress.XamarinForms.Editors

Assembly: DevExpress.XamarinForms.Editors.dll

Declaration

public TextAlignment TextHorizontalAlignment { get; set; }

Property Value

Type Description
TextAlignment

The input text 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.

Examples

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