DiagramDocView.ShowContextMenu Method

Displays the shortcut menu at a specific location in the diagram view.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'宣言
Protected Sub ShowContextMenu ( _
    contextMenuId As CommandID, _
    pt As Point _
)
'使用
Dim contextMenuId As CommandID
Dim pt As Point

Me.ShowContextMenu(contextMenuId, _
    pt)
protected void ShowContextMenu(
    CommandID contextMenuId,
    Point pt
)
protected:
void ShowContextMenu(
    CommandID^ contextMenuId, 
    Point pt
)
protected function ShowContextMenu(
    contextMenuId : CommandID, 
    pt : Point
)

Parameters

  • pt
    Type: System.Drawing.Point

    The x-coordinate and y-coordinate that determine where the shortcut menu appears on the screen.

Permissions

See Also

Reference

DiagramDocView Class

DiagramDocView Members

Microsoft.VisualStudio.Modeling.Shell Namespace