windowsforms-devexpress-dot-xtrabars-dot-barcustomcontaineritem-1154e91c.md
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.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(false)]
public bool ShowMenuCaption { get; set; }
<DefaultValue(False)>
Public Property ShowMenuCaption As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if the menu header is visible; otherwise, false.
|
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:
Clicking on the menu caption has no effect. It’s only used to display any information (for instance, the menu’s name).
See Also
BarCustomContainerItem.MenuCaption