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
mouseArgs
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramPointEventArgsThe mouse event arguments for the diagram view.
Remarks
By default, the shortcut menu that is returned from ContextMenuId appears.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.