ShowContextMenu(Point,LeftRightAlignment,RibbonItem) Method
In This Topic
Displays the contextual menu at the specified screen position.
Syntax
'Declaration
Public Overloads Sub ShowContextMenu( _
ByVal As System.Drawing.Point, _
ByVal As System.Windows.Forms.LeftRightAlignment, _
Optional ByVal As RibbonItem _
)
public void ShowContextMenu(
System.Drawing.Point ,
System.Windows.Forms.LeftRightAlignment ,
RibbonItem
)
Parameters
- pt
- The upper-left or upper-right corner of the contextual menu in screen coordinates.
- alignment
- Specifies the alignment of the control relative to the pos parameter.
- item
- Specifies the ribbon item for which the context menu is shown, this parameter uses when the item is on a dropdown form.
See Also