Skip to main content
A newer version of this page is available. .
Bar

BarItemPaintStyle Enum

Defines the paint style for a specific item.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v18.1.dll

Declaration

public enum BarItemPaintStyle

Members

Name Description
Standard

Specifies that a specific item is represented using its default settings.

PaintStyle.Standard

Caption

Specifies that a specific item is represented by its caption only.

PaintStyle.Caption

CaptionInMenu

Specifies that a specific item is represented by its caption when it is in a submenu, or by its image when it is in a bar.

PaintStyle.CaptionInmenu

CaptionGlyph

Specifies that a specific item is represented both by its caption and the glyph image.

PaintStyle.CaptionGlyoh

Related API Members

Remarks

BarItem can be displayed with a text caption or an image. What is drawn within an item is defined by the BarItem.PaintStyle property value. Standard item representation depends upon the current item’s location. If an item is placed on a toolbar, this item is represented by its image and the item’s caption is not drawn. If an item is placed in a submenu, it is represented by both a caption and an image.

The following code snippets (auto-collected from DevExpress Examples) contain references to the BarItemPaintStyle enum.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also