EditBase.TextHorizontalAlignment Property
Gets or sets the horizontal alignment of text entered in the editor.
Namespace: DevExpress.XamarinForms.Editors
Assembly: DevExpress.XamarinForms.Editors.dll
NuGet Package: DevExpress.XamarinForms.Editors
Declaration
public TextAlignment? TextHorizontalAlignment { get; set; }
Property Value
Type |
---|
Nullable<TextAlignment> |
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:
<dxe:TextEdit Text="Input text"
TextColor="DarkOrange"
TextFontAttributes="Italic"
TextFontSize="25"
TextHorizontalAlignment="Center"/>
See Also