Back to Devexpress

AppearanceSettings.FontStyle Property

dashboard-devexpress-dot-dashboardcommon-dot-appearancesettings.md

latest2.2 KB
Original Source

AppearanceSettings.FontStyle Property

Gets or sets the style applied to text.

Namespace : DevExpress.DashboardCommon

Assembly : DevExpress.Dashboard.v25.2.Core.dll

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
[DefaultValue(null)]
public DXFontStyle? FontStyle { get; set; }
vb
<DefaultValue(Nothing)>
Public Property FontStyle As DXFontStyle?

Property Value

TypeDefaultDescription
Nullable<DXFontStyle>null

A DXFontStyle value that specifies the style applied to text.

|

Available values:

NameDescription
Regular

Normal text.

| | Bold |

Bold text.

| | Italic |

Italic text.

| | Underline |

Underlined text.

| | Strikeout |

Strike-through text.

|

Remarks

To set the element’s background or foreground colors, use the AppearanceSettings.BackColor and AppearanceSettings.ForeColor properties respectively.

To specify font settings, use the AppearanceSettings.FontFamily and FontStyle properties. Note that the AppearanceSettings.AppearanceType property should be set to Custom to take custom appearance settings into account.

See Also

AppearanceSettings Class

AppearanceSettings Members

DevExpress.DashboardCommon Namespace