ComponentOne Ribbon for WinForms
C1.Win.C1Ribbon.4.5.2 Assembly / C1.Win.C1Ribbon Namespace / C1Ribbon Class / ShowContextMenu Method / ShowContextMenu(Point,LeftRightAlignment) Method
The upper-left or upper-right corner of the contextual menu in screen coordinates.
Specifies the alignment of the control relative to the pos parameter.

In This Topic
    ShowContextMenu(Point,LeftRightAlignment) Method
    In This Topic
    Displays the contextual menu at the specified screen position.
    Syntax
    'Declaration
     
    Public Overloads Sub ShowContextMenu( _
       ByVal pt As System.Drawing.Point, _
       ByVal alignment As System.Windows.Forms.LeftRightAlignment _
    ) 
    public void ShowContextMenu( 
       System.Drawing.Point pt,
       System.Windows.Forms.LeftRightAlignment alignment
    )

    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.
    See Also