Click or drag to resize

ContextMenu Methods

The ContextMenu type exposes the following members.

Methods
  NameDescription
Protected methodGetCallback
Gets an instance of an object used to perform callbacks to the widget from handler implementations
(Overrides WidgetGetCallback.)
Protected methodOnClosed
Raises the Closed event.
Protected methodOnClosing
Raises the Closing event.
Protected methodOnLoad
Called when the menu is assigned to a control/window
(Overrides MenuOnLoad(EventArgs).)
Protected methodOnOpening
Raises the Opening event.
Protected methodOnUnLoad
Called when the menu is removed from a control/window
(Overrides MenuOnUnLoad(EventArgs).)
Public methodShow
Show the context menu at the current mouse position.
Public methodShow(Control)
Show the context menu for the specified control, usually at the current mouse position.
Public methodShow(PointF)
Shows the context menu at the specified screen co-ordinates
Public methodShow(Control, NullablePointF)
Shows the context menu at the specified location relative to a control.
Top
Extension Methods
  NameDescription
Public Extension MethodGetChildren
Gets an enumeration of all children of the specified submenu.
(Defined by SubmenuExtensions.)
Top
See Also