[]
        
(Showing Draft Content)

C1.Win.Ribbon.C1Ribbon.ShowContextMenu

ShowContextMenu Method

ShowContextMenu(Control)

Displays the contextual menu at the center of the specified control.

Declaration
public void ShowContextMenu(Control control)
Parameters
Type Name Description
Control control

The control used for positioning of the context menu.

ShowContextMenu(Point, RibbonItem)

Displays the contextual menu at the specified screen position.

Declaration
public void ShowContextMenu(Point pt, RibbonItem item = null)
Parameters
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.

ShowContextMenu(Point, LeftRightAlignment, RibbonItem)

Displays the contextual menu at the specified screen position.

Declaration
public void ShowContextMenu(Point pt, LeftRightAlignment alignment, RibbonItem item = null)
Parameters
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.