共用方式為


DiagramDocView.OnContextMenuRequested(DiagramPointEventArgs) Method

Definition

Processes context menu requested event from the client view. By default shows context menu returned from ContextMenuId property.

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

Parameters

mouseArgs
DiagramPointEventArgs

Mouse event arguments relative to that diagram view.

Applies to