Back to Devexpress

BarCustomContainerItem.ShowMenuCaption Property

windowsforms-devexpress-dot-xtrabars-dot-barcustomcontaineritem-1154e91c.md

latest2.3 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(false)]
public bool ShowMenuCaption { get; set; }
vb
<DefaultValue(False)>
Public Property ShowMenuCaption As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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:

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

MenuAppearance.MenuCaption

ShowCaption

BarHeaderItem

BarCustomContainerItem Class

BarCustomContainerItem Members

DevExpress.XtraBars Namespace