Back to Devexpress

BarCustomContainerItem.MenuCaption Property

windowsforms-devexpress-dot-xtrabars-dot-barcustomcontaineritem-2f185c66.md

latest2.3 KB
Original Source

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

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue("")]
public string MenuCaption { get; set; }
vb
<DefaultValue("")>
Public Property MenuCaption As String

Property Value

TypeDefaultDescription
StringString.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:

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

See Also

ShowMenuCaption

MenuCaption

BarHeaderItem

BarCustomContainerItem Class

BarCustomContainerItem Members

DevExpress.XtraBars Namespace