MouseAction.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.
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
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.