Skip to main content
A newer version of this page is available.

RepositoryItem.ContextMenuStrip Property

Gets or sets the shortcut menu for the editor.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(null)]
public virtual ContextMenuStrip ContextMenuStrip { get; set; }

Property Value

Type Default Description
ContextMenuStrip *null*

A ContextMenuStrip object that represents a shortcut menu for the editor.

Remarks

Use the ContextMenuStrip property to bind a shortcut menu to the editor. Note: some editors have their own context menus provided by default. For instance, editors with text boxes provide a context menu that supports selections and Clipboard related actions, etc. If a shortcut menu is assigned to the ContextMenuStrip property, it overrides the default context menu.

See Also