Compartilhar via


DiagramDocView.OnContextMenuRequested Method

Processes a request for the shortcut menu.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

'Declaração
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