MouseAction Class
Represents a mouse action.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
| Name | Description | |
|---|---|---|
![]() | MouseAction() | Initializes a new instance of the MouseAction class. |
![]() | MouseAction(Diagram^) | Initializes a new instance of the MouseAction class. |
| Name | Description | |
|---|---|---|
![]() ![]() | ActionCanceledState | Gets the canceled state for the mouse action. |
![]() ![]() | ActionCompletedState | Gets the completed state for the mouse action. |
![]() | CanBumpScroll | Gets the mouse action and verifies whether it can cause the diagram to scroll. |
![]() ![]() | ClickedState | Gets the clicked state for the mouse action. |
![]() | CurrentDiagramArgs | Gets the event arguments for the current diagram in which the mouse action occurred. |
![]() | CurrentMouseActionEvent | Gets the current event for the mouse action. |
![]() | CurrentMouseActionState | Gets the current state for the mouse action. |
![]() | CurrentPoint | Gets or sets the mouse position for the current mouse action. |
![]() | Diagram | Gets the diagram to which the mouse action is assigned. |
![]() ![]() | DragCanceledState | Gets the drag cancellation state for the mouse action. |
![]() ![]() | DragCompletedState | Gets the drag completion state for the mouse action. |
![]() ![]() | DraggingState | Gets the drag state of the mouse action. |
![]() ![]() | DragPendingState | Gets the pending drag state for the mouse action. |
![]() | HasTooltip | Gets the mouse action and verifies whether it can have a tooltip. |
![]() ![]() | HoveringState | Gets the hovering state for the mouse action. |
![]() ![]() | InactiveState | Gets the inactive state for the mouse action. |
![]() | IsActive | Gets the mouse action and verifies whether it is active. |
![]() | MouseDownHitShape | Gets shape over which the mouse action occurred. |
![]() | MouseDownPoint | Gets the position of the most recent mouse-down event. |
![]() | PreviousPoint | Gets or sets the position of the previous mouse-down event. |
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | Activate(DiagramClientView^) | Activates the mouse action. |
![]() | CanCancel(DiagramClientView^) | Gets the mouse action and verifies whether it can be canceled. |
![]() | Cancel(DiagramClientView^) | Cancels the mouse action. |
![]() | CanComplete(DiagramClientView^) | Gets the mouse action and verifies whether it can be completed. |
![]() | CaptureMouse(DiagramClientView^) | Gets the mouse action. |
![]() | Click(DiagramPointEventArgs^) | Performs actions for derived classes when the mouse is clicked. |
![]() | Complete(DiagramClientView^) | Completes the mouse action. |
![]() | ContextMenuRequested(DiagramMouseEventArgs^) | Sends a request for the shortcut menu. |
![]() | Dispose() | Releases all resources used by the MouseAction. |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the MouseAction and optionally releases the managed resources. |
![]() | DoPaintFeedback(DiagramPaintEventArgs^) | Paints the feedback for the mouse action. |
![]() | DoubleClick(DiagramPointEventArgs^) | Performs actions for derived classes when a user double-clicks the mouse. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | Finalizes the mouse action but does not dispose it.(Overrides Object::Finalize().) |
![]() | GetCursor(Cursor^, DiagramClientView^, PointD) | Gets the pointer to display for the mouse. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetTooltipText(DiagramItem^) | Gets the tooltip text for an item on the diagram. |
![]() | GetType() | (Inherited from Object.) |
![]() | GotFocus(DiagramEventArgs^) | Assigns the focus to the mouse action. |
![]() | Invalidate(DiagramClientView^) | Invalidates the feedback from the mouse action. |
![]() | LostFocus(DiagramEventArgs^) | Removes focus from the mouse action. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | MouseDown(DiagramMouseEventArgs^) | Performs actions for derived classes when a user clicks the mouse. |
![]() | MouseEnter(DiagramPointEventArgs^) | Performs actions for derived classes when the mouse points to a shape in the diagram. |
![]() | MouseHover(DiagramPointEventArgs^) | Performs actions for derived classes when the user points to an area or an element in the diagram. |
![]() | MouseLeave(LeaveShapeEventArgs^) | Performs actions for derived classes when the mouse no longer points to the shape in the diagram. |
![]() | MouseMove(DiagramMouseEventArgs^) | Performs actions for derived classes when the user moves the mouse over the diagram. |
![]() | MouseUp(DiagramMouseEventArgs^) | Performs actions for derived classes when the user releases the mouse button. |
![]() | MouseWheel(DiagramMouseEventArgs^) | Performs actions for derived classes when the user rotates the mouse wheel. |
![]() | OnClicked(MouseActionEventArgs^) | Alerts listeners that the user has clicked the mouse. |
![]() | OnContextMenuRequested(DiagramMouseEventArgs^) | Alerts listeners that the user has requested the shortcut menu. |
![]() | OnDiagramGotFocus(DiagramEventArgs^) | Alerts listeners that the diagram has the focus. |
![]() | OnDiagramLostFocus(LostFocusEventArgs^) | Called when a LostFocus event has been dispatched to this MouseAction. |
![]() | OnDiagramScrolled(DiagramEventArgs^) | Alerts listeners that the user has scrolled the diagram. |
![]() | OnDoubleClick(DiagramPointEventArgs^) | Alerts listeners that the user has double-clicked the mouse. |
![]() | OnDragCanceled(MouseActionEventArgs^) | Alerts listeners that the drag operation has been canceled. |
![]() | OnDragCompleted(MouseActionEventArgs^) | Alerts listeners that the drag operation has been completed. |
![]() | OnDraggingBegun(MouseActionEventArgs^) | Alerts listeners that the drag operation has begun. |
![]() | OnDraggingEnded(MouseActionEventArgs^) | Alerts listeners that the drag operation has ended. |
![]() | OnDragPendingBegun(MouseActionEventArgs^) | Alerts listeners that the drag operation is pending. |
![]() | OnDragPendingEnded(MouseActionEventArgs^) | Alerts listeners that the drag operation is no longer pending. |
![]() | OnHoveringBegun(MouseActionEventArgs^) | Alerts listeners that the mouse is hovering over the diagram. |
![]() | OnHoveringEnded(MouseActionEventArgs^) | Alerts listeners that the mouse is no longer hovering over the diagram. |
![]() | OnMouseActionActivated(DiagramEventArgs^) | Alerts listeners that the mouse action has begun. |
![]() | OnMouseActionCanceled(DiagramEventArgs^) | Alters listeners that the mouse action has been canceled. |
![]() | OnMouseActionCompleted(DiagramEventArgs^) | Alerts listeners that the mouse action has completed. |
![]() | OnMouseActionDeactivated(DiagramEventArgs^) | Alerts listeners that the mouse action has been deactivated. |
![]() | OnMouseDown(DiagramMouseEventArgs^) | Alerts listeners that the mouse has been clicked. |
![]() | OnMouseEnter(DiagramPointEventArgs^) | Alerts listeners that the mouse has moved over a shape in the diagram. |
![]() | OnMouseHover(DiagramPointEventArgs^) | Alerts listeners that the mouse is pointing to an area or an element in the diagram. |
![]() | OnMouseLeave(LeaveShapeEventArgs^) | Alerts listeners that the mouse is no longer over the shape in the diagram. |
![]() | OnMouseMove(DiagramMouseEventArgs^) | Alerts listeners that the mouse has been moved over the diagram. |
![]() | OnMouseUp(DiagramMouseEventArgs^) | Alerts listeners that the user has released the mouse button. |
![]() | OnMouseWheel(DiagramMouseEventArgs^) | Alerts listeners that the user has rotated the mouse wheel. |
![]() | ReleaseMouse(DiagramClientView^) | Alerts listeners that the user has released the mouse button. |
![]() | Scrolled(DiagramEventArgs^) | Alerts listeners that the user has scrolled the diagram. |
![]() | ToString() | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | MouseActionActivated | Occurs when a mouse action starts. |
![]() | MouseActionDeactivated | Occurs when a mouse action ends. |
Derive from this class to create your own custom mouse actions, such as a connector mouse tool.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.





