ContextMenu
Wisej.Web.ContextMenu
Last updated
Wisej.Web.ContextMenu
Last updated
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.5.0.0)
Represents a context menu associated to a Control.
Initializes a new instance of the ContextMenu class with no menu items specified.
Initializes a new instance of the ContextMenu class with a specified set of MenuItem objects.
Name | Type | Description |
---|---|---|
menuItems |
RightToLeft: Returns or sets whether the text displayed by the control is displayed from right to left.
IWisejComponent: Returns the component that is displaying the shortcut menu.
Control: Returns the control that is displaying the shortcut menu.
Displays the context menu at the specified position in relation to the specified component.
Parameter | Type | Description |
---|---|---|
component | Can be any Wisej visual component: i.e. tool button, column header, etc. | |
position | ||
onclose |
Displays the context menu at the specified position.
Parameter | Type | Description |
---|---|---|
pos | ||
onclose |
Displays the context menu at the specified position in relation to the specified control.
Parameter | Type | Description |
---|---|---|
control | ||
position | ||
onclose |
Throws:
ArgumentNullException The control parameter is null.
ArgumentException The control is not visible.
Displays the context menu at the specified position in relation to the specified control.
Parameter | Type | Description |
---|---|---|
control | ||
pos | ||
onclose |
Throws:
ArgumentNullException The control parameter is null.
ArgumentException The handle of the control does not exist or the control is not visible.
Displays the context menu at the specified position and with the specified alignment in relation to the specified control.
Parameter | Type | Description |
---|---|---|
control | ||
pos | ||
alignment | ||
onclose |
Throws:
ArgumentNullException The control parameter is null.
ArgumentException The control is not visible.
Asynchronously displays the context menu at the specified position in relation to the specified component.
Parameter | Type | Description |
---|---|---|
component | Can be any Wisej visual component: i.e. tool button, column header, etc. | |
position |
Returns: Task.
Asynchronously displays the context menu at the specified position.
Parameter | Type | Description |
---|---|---|
pos |
Returns: Task.
Asynchronously displays the context menu at the specified position in relation to the specified control.
Parameter | Type | Description |
---|---|---|
control | ||
position |
Returns: Task.
Throws:
ArgumentNullException The control parameter is null.
ArgumentException The control is not visible.
Asynchronously displays the context menu at the specified position in relation to the specified control.
Parameter | Type | Description |
---|---|---|
control | ||
pos |
Returns: Task.
Throws:
ArgumentNullException The control parameter is null.
ArgumentException The handle of the control does not exist or the control is not visible.
Asynchronously displays the context menu at the specified position and with the specified alignment in relation to the specified control.
Parameter | Type | Description |
---|---|---|
control | ||
pos | ||
alignment |
Returns: Task.
Throws:
ArgumentNullException The control parameter is null.
ArgumentException The control is not visible.
Updates the component on the client. Overridden to update the owner control.
EventHandler Fired when the context menu collapses.
EventHandler Occurs before the context menu is displayed on the client.
EventHandler Occurs after the context menu is displayed on the client.
Name | Description |
---|---|
All wisej components implement this interface. | |
Allows an object to serialize itself. |
An array of objects that represent the menu items to add to the shortcut menu.
A that specifies position of the menu in relation to the component parameter.
Optional async handler for the close event; called when the context menu has been closed. It's the equivalent of handling the
A that specifies the coordinates at which to display the menu.
Optional async handler for the close event; called when the context menu has been closed. It's the equivalent of handling the
A that specifies the control with which this shortcut menu is associated.
A that specifies position of the menu in relation to the control parameter.
Optional async handler for the close event; called when the context menu has been closed. It's the equivalent of handling the
A that specifies the control with which this shortcut menu is associated.
A that specifies the coordinates at which to display the menu. These coordinates are specified relative to the client coordinates of the control specified in the control parameter.
Optional async handler for the close event; called when the context menu has been closed. It's the equivalent of handling the
A that specifies the control with which this shortcut menu is associated.
A that specifies the coordinates at which to display the menu. These coordinates are specified relative to the client coordinates of the control specified in the control parameter.
A that specifies the alignment of the control relative to the pos parameter.
Optional async handler for the close event; called when the context menu has been closed. It's the equivalent of handling the
A that specifies position of the menu in relation to the component parameter.
A that specifies the coordinates at which to display the menu.
A that specifies the control with which this shortcut menu is associated.
A that specifies position of the menu in relation to the control parameter.
A that specifies the control with which this shortcut menu is associated.
A that specifies the coordinates at which to display the menu. These coordinates are specified relative to the client coordinates of the control specified in the control parameter.
A that specifies the control with which this shortcut menu is associated.
A that specifies the coordinates at which to display the menu. These coordinates are specified relative to the client coordinates of the control specified in the control parameter.
A that specifies the alignment of the control relative to the pos parameter.