DiagramView.ActiveMouseAction Property

Definition

Gets or sets the active mouse action for this DiagramView.

public:
 property Microsoft::VisualStudio::Modeling::Diagrams::MouseAction ^ ActiveMouseAction { Microsoft::VisualStudio::Modeling::Diagrams::MouseAction ^ get(); void set(Microsoft::VisualStudio::Modeling::Diagrams::MouseAction ^ value); };
public Microsoft.VisualStudio.Modeling.Diagrams.MouseAction ActiveMouseAction { get; set; }
member this.ActiveMouseAction : Microsoft.VisualStudio.Modeling.Diagrams.MouseAction with get, set
Public Property ActiveMouseAction As MouseAction

Property Value

Remarks

A mouse action is a modal mouse operation such as the connector tool or the zoom tool.

To install a mouse action, set this property to a MouseAction derived class. The mouse action will automatically be activated.

To uninstall a mouse action, either allow the mouse action to run its course or explicitly set this property to null or to another mouse action. If the current mouse action is still active when this property is set, then the current mouse action is automatically canceled.

Applies to