Share via


DiagramDocView.OnContextMenuRequested Method

Processes a request for the shortcut menu.

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 Overridable Sub OnContextMenuRequested ( _
    mouseArgs As DiagramPointEventArgs _
)
protected virtual void OnContextMenuRequested(
    DiagramPointEventArgs mouseArgs
)
protected:
virtual void OnContextMenuRequested(
    DiagramPointEventArgs^ mouseArgs
)
abstract OnContextMenuRequested : 
        mouseArgs:DiagramPointEventArgs -> unit  
override OnContextMenuRequested : 
        mouseArgs:DiagramPointEventArgs -> unit
protected function OnContextMenuRequested(
    mouseArgs : DiagramPointEventArgs
)

Parameters

Remarks

By default, the shortcut menu that is returned from ContextMenuId appears.

.NET Framework Security

See Also

Reference

DiagramDocView Class

Microsoft.VisualStudio.Modeling.Shell Namespace