ContextMenu Class |
Namespace: Eto.Forms
The ContextMenu type exposes the following members.
Name | Description | |
---|---|---|
ContextMenu |
Initializes a new instance of the ContextMenu class.
| |
ContextMenu(MenuItem) |
Initializes a new instance of the ContextMenu class.
| |
ContextMenu(IEnumerableMenuItem) |
Initializes a new instance of the ContextMenu class.
|
Name | Description | |
---|---|---|
Items |
Gets the menu items in the context menu
| |
Trim |
Gets a value indicating whether this sub menu should trim its child menu items when loaded onto a form
|
Name | Description | |
---|---|---|
GetCallback |
Gets an instance of an object used to perform callbacks to the widget from handler implementations
(Overrides WidgetGetCallback.) | |
OnClosed |
Raises the Closed event.
| |
OnClosing |
Raises the Closing event.
| |
OnLoad |
Called when the menu is assigned to a control/window
(Overrides MenuOnLoad(EventArgs).) | |
OnOpening |
Raises the Opening event.
| |
OnUnLoad |
Called when the menu is removed from a control/window
(Overrides MenuOnUnLoad(EventArgs).) | |
Show |
Show the context menu at the current mouse position.
| |
Show(Control) |
Show the context menu for the specified control, usually at the current mouse position.
| |
Show(PointF) |
Shows the context menu at the specified screen co-ordinates
| |
Show(Control, NullablePointF) |
Shows the context menu at the specified location relative to a control.
|
Name | Description | |
---|---|---|
Closed |
Occurs when the context menu is closed/dismissed, after the menu item has been selected and its click
event is triggered.
| |
Closing |
Occurs before the context menu is closed/dismissed when the user clicks an item, but before the menu item's
click event is triggered.
| |
Opening |
Occurs when the context menu is opening, before it is shown.
|
Name | Description | |
---|---|---|
ClosedEvent |
Event identifier for handlers when attaching the Closed event.
| |
ClosingEvent |
Event identifier for handlers when attaching the Closing event.
| |
OpeningEvent |
Event identifier for handlers when attaching the Opening event.
|
Name | Description | |
---|---|---|
GetChildren |
Gets an enumeration of all children of the specified submenu.
(Defined by SubmenuExtensions.) |