Skip to main content
Bar

BarCustomContainerItem.ShowMenuCaption Property

Gets or sets whether the menu header is visible when the current object’s items are displayed as a popup menu.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

[DefaultValue(false)]
public bool ShowMenuCaption { get; set; }

Property Value

Type Default Description
Boolean false

true if the menu header is visible; otherwise, false.

Remarks

Use the ShowMenuCaption property to make a menu header visible. The menu header is only available when elements of the current BarCustomContainerItem object are displayed as a popup menu. To specify the text displayed within the menu header use the BarCustomContainerItem.MenuCaption property.

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