Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

EditBase.TextColor Property

Gets or sets the color of text entered into the editor. This is a bindable property.

Namespace: DevExpress.Maui.Editors

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

#Declaration

C#
public Color TextColor { get; set; }

#Property Value

Type Description
Color

The input text color.

#Remarks

Use TextColor property to change the color of the text that a user inputs. 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:

DevExpress MAUI TextEdit - Darkorange Italic Centered Text

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