Delen via


DiagramClientView.ActiveMouseAction Property

Gets or sets the active mouse action for this DiagramClientView.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
Public Property ActiveMouseAction As MouseAction
public MouseAction ActiveMouseAction { get; set; }
public:
property MouseAction^ ActiveMouseAction {
    MouseAction^ get ();
    void set (MouseAction^ value);
}
member ActiveMouseAction : MouseAction with get, set
function get ActiveMouseAction () : MouseAction 
function set ActiveMouseAction (value : MouseAction)

Property Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.MouseAction

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.

.NET Framework Security

See Also

Reference

DiagramClientView Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace