EditBase.TextFontAttributes Property

Gets or sets the font style that the editor uses for input text, label and placeholder.

Namespace: DevExpress.XamarinForms.Editors

Assembly: DevExpress.XamarinForms.Editors.dll

Declaration

public FontAttributes TextFontAttributes { get; set; }

Property Value

Type Description
FontAttributes

The value that specifies whether the text is bold, italic, or neither.

Remarks

For the editor's input text, you can also use TextFontSize and TextFontFamily properties to change the text size and font, TextColor and DisabledTextColor to specify the text color, and TextHorizontalAlignment to align the text within the editor box.

NOTE

The TextFontAttributes property affects the default font only. If you need to apply a bold or italic custom font to the text, add the corresponding font style file to your solution and assign that font to the editor's TextFontFamily property.

Examples

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"/>
See Also