A newer version of this page is available. Switch to the current version.

DXMenuItem.Caption Property

Specifies the text displayed within the menu item.

Namespace: DevExpress.Utils.Menu

Assembly: DevExpress.Utils.v19.1.dll


public string Caption { get; set; }
Public Property Caption As String

Property Value

Type Description

A string that specifies the text displayed within the menu item.


The Caption property can contain the ampersand character ('&'). If the DXMenuItem.ShowHotKeyPrefix is set to true, the character that follows the ampersand is underscored and this indicates that it can be used as a shortcut. At runtime, an end-user can press this character to invoke the menu item's functionality. For the second menu item in the image below, the Caption property is set to "&Merging Enabled":



Shortcuts specified this way are only in effect if a popup menu in a control is displayed using the BarManager component. Currently the following controls support popup menus to be displayed using the BarManager:

To allow popup menus to be displayed using the Bar Manager component, place a BarManager object onto a form, and assign it to the control's MenuManager property. See the EditorContainer.MenuManager property for more information.

See Also