Bar

BarItem.PaintStyle Property

Specifies the style with which to display a specific BarItem within a bar.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[DXCategory("Appearance")]
[SupportedByRibbon(SupportedByRibbonKind.SupportedInMenu)]
public virtual BarItemPaintStyle PaintStyle { get; set; }
<DXCategory("Appearance")>
<SupportedByRibbon(SupportedByRibbonKind.SupportedInMenu)>
Public Overridable Property PaintStyle As BarItemPaintStyle

Property Value

Type Description
BarItemPaintStyle

A BarItemPaintStyle enumerator value specifying the item style.

Remarks

The PaintStyle property defines the look & feel of the current item. For instance, if a specific BarButtonItem has an associated icon and hotkey combination, but the PaintStyle property value is set to BarItemPaintStyle.CaptionInMenu, then the hotkey combination is disabled.

NOTE

Different bar items behave differently when their PaintStyle property is set to Standard. For instance, by default ,BarButtonItems display only their images, while BarSubItems display only captions. To display a glyph instead of a caption for a BarSubItem, set this item's PaintStyle property to CaptionInMenu.

See Also