Skip to main content
.NET Framework 4.5.2+

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.v24.1.dll

Declaration

public DXFontStyle FontStyle { get; set; }

Property Value

Type Description
DXFontStyle

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

Available values:

Name Description
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 and ASPxGridListEditor (the font style of the displayed text)
  • Nodes in a TreeListEditor and ASPxTreeListEditor (the font style of the displayed text)
  • Property Editors inherited from the DXPropertyEditor and WebPropertyEditor types (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 24.1\Components\XAF\FeatureCenter.NETFramework.XPO folder, or refer to the Feature Center demo online.

See Also