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

FormItemBase.TextFontAttributes Property

Gets or sets the font style that the form item applies to its Text. This is a bindable property.

Namespace: DevExpress.Maui.Editors

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

#Declaration

C#
public FontAttributes TextFontAttributes { get; set; }

#Property Value

Type Default Description
FontAttributes None

The font attributes.

#Remarks

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. Refer to the following page for more information: Fonts in .NET MAUI

#Example

The markup below adds a text header to a form item and specifies text settings:

<dxe:FormItem Text="Brightness level"
              TextColor="Gray"
              TextFontAttributes="Bold"
              TextFontFamily="OpenSansRegular"
              TextFontSize="18"
              TextLineBreakMode="CharacterWrap"
              TextMargin="4"
              TextMaxLineCount="2"/>
See Also