Share via


MouseAction.OnContextMenuRequested Method

Alerts listeners that the user has requested the shortcut menu.

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

Syntax

'Declaration
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

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

See Also

Reference

MouseAction Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace