Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents a mouse action.
Inheritance Hierarchy
System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.MouseAction
    Microsoft.VisualStudio.Modeling.Diagrams.InvokeEditorAction
    Microsoft.VisualStudio.Modeling.Diagrams.PanZoomAction
    Microsoft.VisualStudio.Modeling.Diagrams.ResizeAction
    Microsoft.VisualStudio.Modeling.Diagrams.SelectAction
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 MustInherit Class MouseAction _
    Implements IDisposable
public abstract class MouseAction : IDisposable
public ref class MouseAction abstract : IDisposable
[<AbstractClass>]
type MouseAction =  
    class 
        interface IDisposable 
    end
public abstract class MouseAction implements IDisposable
The MouseAction type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | MouseAction() | Initializes a new instance of the MouseAction class. | 
| .gif) | MouseAction(Diagram) | Initializes a new instance of the MouseAction class. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) .gif) | ActionCanceledState | Gets the canceled state for the mouse action. | 
| .gif) .gif) | ActionCompletedState | Gets the completed state for the mouse action. | 
| .gif) | CanBumpScroll | Gets the mouse action and verifies whether it can cause the diagram to scroll. | 
| .gif) .gif) | ClickedState | Gets the clicked state for the mouse action. | 
| .gif) | CurrentDiagramArgs | Gets the event arguments for the current diagram in which the mouse action occurred. | 
| .gif) | CurrentMouseActionEvent | Gets the current event for the mouse action. | 
| .gif) | CurrentMouseActionState | Gets the current state for the mouse action. | 
| .gif) | CurrentPoint | Gets or sets the mouse position for the current mouse action. | 
| .gif) | Diagram | Gets the diagram to which the mouse action is assigned. | 
| .gif) .gif) | DragCanceledState | Gets the drag cancellation state for the mouse action. | 
| .gif) .gif) | DragCompletedState | Gets the drag completion state for the mouse action. | 
| .gif) .gif) | DraggingState | Gets the drag state of the mouse action. | 
| .gif) .gif) | DragPendingState | Gets the pending drag state for the mouse action. | 
| .gif) | HasTooltip | Gets the mouse action and verifies whether it can have a tooltip. | 
| .gif) .gif) | HoveringState | Gets the hovering state for the mouse action. | 
| .gif) .gif) | InactiveState | Gets the inactive state for the mouse action. | 
| .gif) | IsActive | Gets the mouse action and verifies whether it is active. | 
| .gif) | MouseDownHitShape | Gets shape over which the mouse action occurred. | 
| .gif) | MouseDownPoint | Gets the position of the most recent mouse-down event. | 
| .gif) | PreviousPoint | Gets or sets the position of the previous mouse-down event. | 
| .gif) | ResetToolboxOnDragDrop | Whether to reset toolbox selection after a drag-drop operation triggered by this mouse action. Base implementation always returns true, which means the toolbox selection will be reset after a drag-drop operation triggered by this mouse action. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Activate | Activates the mouse action. | 
| .gif) | CanCancel | Gets the mouse action and verifies whether it can be canceled. | 
| .gif) | Cancel | Cancels the mouse action. | 
| .gif) | CanComplete | Gets the mouse action and verifies whether it can be completed. | 
| .gif) | CaptureMouse | Gets the mouse action. | 
| .gif) | Click | Performs actions for derived classes when the mouse is clicked. | 
| .gif) | Complete | Completes the mouse action. | 
| .gif) | ContextMenuRequested | Sends a request for the shortcut menu. | 
| .gif) | Dispose() | Releases all resources used by the MouseAction. | 
| .gif) | Dispose(Boolean) | Releases the unmanaged resources used by the MouseAction and optionally releases the managed resources. | 
| .gif) | DoPaintFeedback | Paints the feedback for the mouse action. | 
| .gif) | DoubleClick | Performs actions for derived classes when a user double-clicks the mouse. | 
| .gif) | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
| .gif) | Finalize | Finalizes the mouse action but does not dispose it. (Overrides Object.Finalize().) | 
| .gif) | GetCursor | Gets the pointer to display for the mouse. | 
| .gif) | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
| .gif) | GetTooltipText | Gets the tooltip text for an item on the diagram. | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | GotFocus | Assigns the focus to the mouse action. | 
| .gif) | Invalidate | Invalidates the feedback from the mouse action. | 
| .gif) | LostFocus | Removes focus from the mouse action. | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | MouseDown | Performs actions for derived classes when a user clicks the mouse. | 
| .gif) | MouseEnter | Performs actions for derived classes when the mouse points to a shape in the diagram. | 
| .gif) | MouseHover | Performs actions for derived classes when the user points to an area or an element in the diagram. | 
| .gif) | MouseLeave | Performs actions for derived classes when the mouse no longer points to the shape in the diagram. | 
| .gif) | MouseMove | Performs actions for derived classes when the user moves the mouse over the diagram. | 
| .gif) | MouseUp | Performs actions for derived classes when the user releases the mouse button. | 
| .gif) | MouseWheel | Performs actions for derived classes when the user rotates the mouse wheel. | 
| .gif) | OnClicked | Alerts listeners that the user has clicked the mouse. | 
| .gif) | OnContextMenuRequested | Alerts listeners that the user has requested the shortcut menu. | 
| .gif) | OnDiagramGotFocus | Alerts listeners that the diagram has the focus. | 
| .gif) | OnDiagramLostFocus | Called when a LostFocus event has been dispatched to this MouseAction. | 
| .gif) | OnDiagramScrolled | Alerts listeners that the user has scrolled the diagram. | 
| .gif) | OnDoubleClick | Alerts listeners that the user has double-clicked the mouse. | 
| .gif) | OnDragCanceled | Alerts listeners that the drag operation has been canceled. | 
| .gif) | OnDragCompleted | Alerts listeners that the drag operation has been completed. | 
| .gif) | OnDraggingBegun | Alerts listeners that the drag operation has begun. | 
| .gif) | OnDraggingEnded | Alerts listeners that the drag operation has ended. | 
| .gif) | OnDragPendingBegun | Alerts listeners that the drag operation is pending. | 
| .gif) | OnDragPendingEnded | Alerts listeners that the drag operation is no longer pending. | 
| .gif) | OnHoveringBegun | Alerts listeners that the mouse is hovering over the diagram. | 
| .gif) | OnHoveringEnded | Alerts listeners that the mouse is no longer hovering over the diagram. | 
| .gif) | OnMouseActionActivated | Alerts listeners that the mouse action has begun. | 
| .gif) | OnMouseActionCanceled | Alters listeners that the mouse action has been canceled. | 
| .gif) | OnMouseActionCompleted | Alerts listeners that the mouse action has completed. | 
| .gif) | OnMouseActionDeactivated | Alerts listeners that the mouse action has been deactivated. | 
| .gif) | OnMouseDown | Alerts listeners that the mouse has been clicked. | 
| .gif) | OnMouseEnter | Alerts listeners that the mouse has moved over a shape in the diagram. | 
| .gif) | OnMouseHover | Alerts listeners that the mouse is pointing to an area or an element in the diagram. | 
| .gif) | OnMouseLeave | Alerts listeners that the mouse is no longer over the shape in the diagram. | 
| .gif) | OnMouseMove | Alerts listeners that the mouse has been moved over the diagram. | 
| .gif) | OnMouseUp | Alerts listeners that the user has released the mouse button. | 
| .gif) | OnMouseWheel | Alerts listeners that the user has rotated the mouse wheel. | 
| .gif) | ReleaseMouse | Alerts listeners that the user has released the mouse button. | 
| .gif) | Scrolled | Alerts listeners that the user has scrolled the diagram. | 
| .gif) | ToString | Returns a string that represents the current object. (Inherited from Object.) | 
Top
Events
| Name | Description | |
|---|---|---|
| .gif) | MouseActionActivated | Occurs when a mouse action starts. | 
| .gif) | MouseActionDeactivated | Occurs when a mouse action ends. | 
Top
Remarks
Derive from this class to create your own custom mouse actions, such as a connector mouse tool.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.