ContextMenu
Wisej.Web.ContextMenu
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Represents a context menu associated to a Control.
Constructors
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 |
Initializes a new instance of the ToolTip class with a specified container.
Name | Type | Description |
---|---|---|
container |
Properties
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.
Methods
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 | ||
Displays the context menu at the specified position.
Parameter | Type | Description |
---|---|---|
pos | ||
Displays the context menu at the specified position in relation to the specified control.
Parameter | Type | Description |
---|---|---|
control | ||
position | ||
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 | ||
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 | ||
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.
Events
EventHandler Fired when the context menu collapses.
EventHandler Occurs before the context menu is displayed on the client when shown using one of the Show or ShowAsync methods. It doesn't fire when the context menu is associated to a control and it's shown from a user event (i.e. the user right clicks on the control associated with the context menu).
EventHandler Occurs after the context menu is displayed on the client.
Implements
Name | Description |
---|---|
Bindable components implement this interface. | |
All wisej components implement this interface. | |
Allows an object to serialize itself. |
Last updated