MouseAction.OnContextMenuRequested Method
Alerts listeners that the user has requested the shortcut menu.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Dichiarazione
Protected Overridable Sub OnContextMenuRequested ( _
e As DiagramMouseEventArgs _
)
protected virtual void OnContextMenuRequested(
DiagramMouseEventArgs e
)
protected:
virtual void OnContextMenuRequested(
DiagramMouseEventArgs^ e
)
abstract OnContextMenuRequested :
e:DiagramMouseEventArgs -> unit
override OnContextMenuRequested :
e:DiagramMouseEventArgs -> unit
protected function OnContextMenuRequested(
e : DiagramMouseEventArgs
)
Parameters
- e
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramMouseEventArgs
The arguments for a mouse event that occurs over the diagram.
Remarks
To prevent any context menu from appearing during this MouseAction, override this method and set the Handled property of the DiagramMouseEventArgs to true.
.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.