[]
Displays the contextual menu at the center of the specified control.
public void ShowContextMenu(Control control)
| Type | Name | Description |
|---|---|---|
| Control | control | The control used for positioning of the context menu. |
Displays the contextual menu at the specified screen position.
public void ShowContextMenu(Point pt, RibbonItem item = null)
| Type | Name | Description |
|---|---|---|
| Point | pt | The upper-left (upper-right for RTL mode) corner of the contextual menu in screen coordinates. |
| RibbonItem | item | Specifies the ribbon item for which the context menu is shown, this parameter uses when the item is on a dropdown form. |
Displays the contextual menu at the specified screen position.
public void ShowContextMenu(Point pt, LeftRightAlignment alignment, RibbonItem item = null)
| Type | Name | Description |
|---|---|---|
| Point | pt | The upper-left or upper-right corner of the contextual menu in screen coordinates. |
| LeftRightAlignment | alignment | Specifies the alignment of the control relative to the pos parameter. |
| RibbonItem | item | Specifies the ribbon item for which the context menu is shown, this parameter uses when the item is on a dropdown form. |