Back to Devexpress

AppearanceAttribute.FontStyle Property

expressappframework-devexpress-dot-expressapp-dot-conditionalappearance-dot-appearanceattribute-8fd9165a.md

latest2.9 KB
Original Source

AppearanceAttribute.FontStyle Property

Specifies the font style of AppearanceAttribute.TargetItems affected by the conditional appearance rule generated from this attribute instance.

Namespace : DevExpress.ExpressApp.ConditionalAppearance

Assembly : DevExpress.Persistent.Base.v25.2.dll

NuGet Package : DevExpress.Persistent.Base

Declaration

csharp
public DXFontStyle FontStyle { get; set; }
vb
Public Property FontStyle As DXFontStyle

Property Value

TypeDescription
DXFontStyle

An enumeration value that specifies the font style of target items affected by the conditional appearance rule.

|

Available values:

NameDescription
Regular

Normal text.

| | Bold |

Bold text.

| | Italic |

Italic text.

| | Underline |

Underlined text.

| | Strikeout |

Strike-through text.

|

Remarks

The following UI elements can change their font style:

  • Data cells in a GridListEditor (the font style of the displayed text)
  • Nodes in a TreeListEditor (the font style of the displayed text)
  • Property Editors inherited from the DXPropertyEditor type (the font style of the displayed text)
  • StaticText (the font style of the displayed text)
  • Layout Items, Layout Groups, and Tabbed Layout Groups (the font style of the caption)

You can find many examples in the Declare Conditional Appearance Rules in Code topic. See these examples in the Feature Center demo installed with the XAF in the %PUBLIC%\Documents\DevExpress Demos 25.2\Components\XAF\FeatureCenter.NET.XPO folder, or refer to the Feature Center demo online.

See Also

Conditional Appearance (Manage UI State)

AppearanceAttribute Class

AppearanceAttribute Members

DevExpress.ExpressApp.ConditionalAppearance Namespace