Skip to main content
.NET 8.0+

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

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.2.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.2\Components\XAF\FeatureCenter.NETFramework.XPO folder, or refer to the Feature Center demo online.

See Also