ConnectAction.OnContextMenuRequested(DiagramMouseEventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Should cancel connect action on context menu as it throws exceptions otherwise because target and source elements could be null in this case.
protected:
override void OnContextMenuRequested(Microsoft::VisualStudio::Modeling::Diagrams::DiagramMouseEventArgs ^ e);
protected override void OnContextMenuRequested (Microsoft.VisualStudio.Modeling.Diagrams.DiagramMouseEventArgs e);
override this.OnContextMenuRequested : Microsoft.VisualStudio.Modeling.Diagrams.DiagramMouseEventArgs -> unit
Protected Overrides Sub OnContextMenuRequested (e As DiagramMouseEventArgs)
Parameters
A DiagramMouseEventArgs that contains the event data.