Skip to main content

EditBase.LabelFontSize Property

Gets or sets the font size of the editor’s label text.

Namespace: DevExpress.XamarinForms.Editors

Assembly: DevExpress.XamarinForms.Editors.dll

NuGet Package: DevExpress.XamarinForms.Editors

#Declaration

C#
public double LabelFontSize { get; set; }

#Property Value

Type Description
Double

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

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