Share via


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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Syntax

'Declaration
Protected Sub ShowContextMenu ( _
    contextMenuId As CommandID, _
    pt As Point _
)
protected void ShowContextMenu(
    CommandID contextMenuId,
    Point pt
)
protected:
void ShowContextMenu(
    CommandID^ contextMenuId, 
    Point pt
)
member ShowContextMenu : 
        contextMenuId:CommandID * 
        pt:Point -> unit
protected function ShowContextMenu(
    contextMenuId : CommandID, 
    pt : Point
)

Parameters

  • contextMenuId
    Type: CommandID

    The ID that is assigned to the shortcut menu that you want to show.

  • pt
    Type: Point

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

.NET Framework Security

See Also

Reference

DiagramDocView Class

Microsoft.VisualStudio.Modeling.Shell Namespace