Skip to main content
Bar

BarCustomContainerItem.MenuCaption Property

Gets or sets a caption displayed when the current object’s items are represented as a popup menu.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue("")]
public string MenuCaption { get; set; }

Property Value

Type Default Description
String String.Empty

A string that specifies the menu caption.

Remarks

If items that belong to the current BarCustomContainerItem object, represent a popup menu, the menu’s header can be made visible to display any textual information (for instance, the menu’s name). Use the BarCustomContainerItem.ShowMenuCaption property to display the menu’s header and the MenuCaption property to specify the display text.

The following image shows a Save submenu whose caption displays the “Save Menu” string:

SubMenu_Caption

Clicking on the menu caption has no effect. It’s only used to display any information (for instance, the menu’s name).

See Also