EditBase.TextColor Property
Gets or sets the color of text entered into the editor.
Namespace: DevExpress.XamarinForms.Editors
Assembly: DevExpress.XamarinForms.Editors.dll
NuGet Package: DevExpress.XamarinForms.Editors
Declaration
public Color TextColor { get; set; }
Property Value
Type | Description |
---|---|
Color | The input text color. |
Remarks
Use the TextColor property to change the color of the text that a user inputs. You can also use the CursorColor property to customize the color of the input cursor.
The DisabledTextColor property specifies the text color for the editor in the disabled state.
You can also use the TextFontSize, TextFontAttributes and TextFontFamily properties to customize the editor’s text font, and TextHorizontalAlignment to align the text within the editor box.
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"/>