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

BarItemLink.Caption Property

A string containing the item’s caption.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v19.2.dll

Declaration

public virtual string Caption { get; set; }

Property Value

Type Description
String

The item’s caption.

Remarks

Caption represents an item within a bar if the BarItemLink.PaintStyle property of that item is set to BarItemPaintStyle.Caption or BarItemPaintStyle.CaptionGlyph or the item has no associated icon. This property value may differ from the BarItem.Caption property. The item caption can be used to assign a hot key to the current item. This hotkey is one of the caption’s symbols used to activate a specific item. The caption symbol used for a hot key combination is defined by entering an ampersand before the required symbol. The appropriate symbol is underlined within the caption. For more information on hotkey combinations explore the BarItemLink.Accelerator topic in this manual.

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

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