Class DockContextMenuEventArgs
Custom event argument class used by the DockContextMenu event.
Inheritance
System.Object
System.EventArgs
DockContextMenuEventArgs
Inherited Members
System.EventArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class DockContextMenuEventArgs : EventArgs
Remarks
The DockingManager uses the DockContextMenu event to allow users to modify the context menu displayed when a docking window's caption is right-clicked. DockContextMenuEventHandler
Constructors
DockContextMenuEventArgs(Control, PopupMenu)
Creates a new instance of the DockContextMenuEventArgs class.
Declaration
public DockContextMenuEventArgs(Control owner, PopupMenu menu)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | owner | The control displaying the menu. |
PopupMenu | menu | The menu being displayed. |
Fields
ctrlOwner
Declaration
protected Control ctrlOwner
Field Value
Type |
---|
System.Windows.Forms.Control |
mnuContext
Declaration
protected PopupMenu mnuContext
Field Value
Type |
---|
PopupMenu |
Properties
ContextMenu
Gets / sets the context menu to be displayed.
Declaration
public PopupMenu ContextMenu { get; set; }
Property Value
Type | Description |
---|---|
PopupMenu | An instance of the PopupMenu class. |
Owner
Returns the control that is displaying the context menu.
Declaration
public Control Owner { get; }
Property Value
Type |
---|
System.Windows.Forms.Control |