RepositoryItem.ContextMenuStrip Property
Gets or sets the shortcut menu for the editor.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v21.2.dll
NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Navigation
Declaration
[DefaultValue(null)]
[DXCategory("Behavior")]
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