RepositoryItem.ContextMenuStrip Property

Gets or sets the shortcut menu for the editor.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(null)]
public virtual ContextMenuStrip ContextMenuStrip { get; set; }
<DXCategory("Behavior")>
<DefaultValue(Nothing)>
Public Overridable Property ContextMenuStrip As ContextMenuStrip

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