BaseEdit.ContextMenuStrip Property

Gets or sets a ContextMenuStrip associated with the current control

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[Browsable(false)]
public override ContextMenuStrip ContextMenuStrip { get; set; }
<Browsable(False)>
Public Overrides Property ContextMenuStrip As ContextMenuStrip

Property Value

Type Description
ContextMenuStrip

A ContextMenuStrip object that represents a shortcut menu associated with the current control.

Remarks

Custom menus can be assigned to editors using the ContextMenuStrip or RepositoryItem.ContextMenuStrip property.

We suggest you assign custom menus to editors using the RepositoryItem.ContextMenuStrip property which can be accessed via the editor's BaseEdit.Properties object. The menu assigned to the RepositoryItem.ContextMenuStrip has a higher priority.

See Also