Back to Devexpress

EditBase.TextFontSize Property

maui-devexpress-dot-maui-dot-editors-dot-editbase-7e8ef885.md

latest1.8 KB
Original Source

EditBase.TextFontSize Property

Gets or sets the font size 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

csharp
[TypeConverter(typeof(FontSizeConverter))]
public double TextFontSize { get; set; }

Property Value

TypeDefaultDescription
Double0

The input text font size.

|

Remarks

You can also use the TextFontAttributes and TextFontFamily properties to customize the editor’s text font, TextColor and DisabledTextColor to change the text color, 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:

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

See Also

EditBase Class

EditBase Members

DevExpress.Maui.Editors Namespace