Back to Devexpress

EditBase.LabelFontSize Property

maui-devexpress-dot-maui-dot-editors-dot-editbase-605fc91d.md

latest1.9 KB
Original Source

EditBase.LabelFontSize Property

Gets or sets the font size of the editor’s label text. 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 LabelFontSize { get; set; }

Property Value

TypeDefaultDescription
Double0

The label’s font size.

|

Remarks

Use the LabelFontSize property to specify the font size for a label displayed near the top of the editor box.

The label’s font family and attributes depend on the editor’s TextFontFamily and TextFontAttributes properties.

Example

This example shows how to change the label text color and adjust font settings:

|

State

|

Appearance

| | --- | --- | |

Unfocused

|

| |

Focused

|

|

xml
<dxe:TextEdit IsLabelFloating="False"
              LabelText="Login"
              LabelColor="#404040"
              LabelFontSize="20"
              FocusedLabelColor="#404040"
              BorderColor=" #fe7c00"
              FocusedBorderColor="#a5a5a5"/>

See Also

EditBase Class

EditBase Members

DevExpress.Maui.Editors Namespace