Partager via


MouseAction.OnContextMenuRequested(DiagramMouseEventArgs) Method

Definition

Called when a ContextMenuRequested event has been dispatched to this MouseAction.

protected:
 virtual void OnContextMenuRequested(Microsoft::VisualStudio::Modeling::Diagrams::DiagramMouseEventArgs ^ e);
protected virtual void OnContextMenuRequested (Microsoft.VisualStudio.Modeling.Diagrams.DiagramMouseEventArgs e);
abstract member OnContextMenuRequested : Microsoft.VisualStudio.Modeling.Diagrams.DiagramMouseEventArgs -> unit
override this.OnContextMenuRequested : Microsoft.VisualStudio.Modeling.Diagrams.DiagramMouseEventArgs -> unit
Protected Overridable Sub OnContextMenuRequested (e As DiagramMouseEventArgs)

Parameters

e
DiagramMouseEventArgs

A DiagramMouseEventArgs that contains event data.

Remarks

To prevent any context menu from appearing during this MouseAction, override this method and set the Handled property of the DiagramMouseEventArgs to true.

Applies to