ConnectAction Class
Mouse action that allows user to drag from one SoftwareComponentType shape or Port shape to another in order to create a connection.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Microsoft.VisualStudio.Modeling.Diagrams::MouseAction
Microsoft.VisualStudio.Modeling.Diagrams::SelectAction
Microsoft.VisualStudio.Modeling.Diagrams::ConnectAction
Microsoft.VisualStudio.Modeling.Diagrams::GenericCoreConnectAction
| Name | Description | |
|---|---|---|
![]() | ConnectAction(Diagram^, Boolean) | Initializes a new instance of the ConnectAction class |
| Name | Description | |
|---|---|---|
![]() | CanBumpScroll | Gets the mouse action and verifies whether it can cause the diagram to scroll.(Inherited from MouseAction.) |
![]() | CurrentDiagramArgs | Gets the event arguments for the current diagram in which the mouse action occurred.(Inherited from MouseAction.) |
![]() | CurrentMouseActionEvent | Gets the current event for the mouse action.(Inherited from MouseAction.) |
![]() | CurrentMouseActionState | Gets the current state for the mouse action.(Inherited from MouseAction.) |
![]() | CurrentPoint | Gets or sets the mouse position for the current mouse action.(Inherited from MouseAction.) |
![]() | DeferredFocusableItem | (Inherited from SelectAction.) |
![]() | DeferredSelectableItem | (Inherited from SelectAction.) |
![]() | Diagram | Gets the diagram to which the mouse action is assigned.(Inherited from MouseAction.) |
![]() | HasTooltip | Gets the mouse action and verifies whether it can have a tooltip.(Inherited from MouseAction.) |
![]() | IsActive | Gets the mouse action and verifies whether it is active.(Inherited from MouseAction.) |
![]() | MouseDownHitShape | Gets shape over which the mouse action occurred.(Inherited from MouseAction.) |
![]() | MouseDownPoint | Gets the position of the most recent mouse-down event.(Inherited from MouseAction.) |
![]() | PreviousPoint | Gets or sets the position of the previous mouse-down event.(Inherited from MouseAction.) |
![]() | 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.(Inherited from MouseAction.) |
![]() | StickyMode | Gets/Sets a bool indicating if the connect action can perform multiple connections or not. |
![]() | TargetPoint | |
![]() | UpdateConnectionType | External events can determine if connection type should be locked during connect action |
| Name | Description | |
|---|---|---|
![]() | Activate(DiagramClientView^) | Activates the mouse action.(Inherited from MouseAction.) |
![]() | CanCancel(DiagramClientView^) | Gets the mouse action and verifies whether it can be canceled.(Inherited from MouseAction.) |
![]() | Cancel(DiagramClientView^) | Cancels the mouse action.(Inherited from MouseAction.) |
![]() | CanComplete(DiagramClientView^) | Gets the mouse action and verifies whether it can be completed.(Inherited from MouseAction.) |
![]() | CaptureMouse(DiagramClientView^) | Gets the mouse action.(Inherited from MouseAction.) |
![]() | Click(DiagramPointEventArgs^) | Performs actions for derived classes when the mouse is clicked.(Inherited from MouseAction.) |
![]() | Complete(DiagramClientView^) | Completes the mouse action.(Inherited from MouseAction.) |
![]() | ContextMenuRequested(DiagramMouseEventArgs^) | Sends a request for the shortcut menu.(Inherited from MouseAction.) |
![]() | Dispose() | Releases all resources used by the MouseAction.(Inherited from MouseAction.) |
![]() | Dispose(Boolean) | (Overrides MouseAction::Dispose(Boolean).) |
![]() | DoPaintFeedback(DiagramPaintEventArgs^) | Feedbacks usefull information during connect action(Overrides MouseAction::DoPaintFeedback(DiagramPaintEventArgs^).) |
![]() | DoubleClick(DiagramPointEventArgs^) | Performs actions for derived classes when a user double-clicks the mouse.(Inherited from MouseAction.) |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | Finalizes the mouse action but does not dispose it.(Inherited from MouseAction.) |
![]() | GetConnectionTypes(ShapeElement^, ShapeElement^) | Determine from source if a specific connection type exits |
![]() | GetCursor(Cursor^, DiagramClientView^, PointD) | Returns the connect action cursor(Overrides MouseAction::GetCursor(Cursor^, DiagramClientView^, PointD).) |
![]() | GetCursorFromCursorType(ConnectActionCursor) | |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetTooltipText(DiagramItem^) | Gets the tooltip text for an item on the diagram.(Inherited from MouseAction.) |
![]() | GetType() | (Inherited from Object.) |
![]() | GotFocus(DiagramEventArgs^) | Assigns the focus to the mouse action.(Inherited from MouseAction.) |
![]() | Invalidate(DiagramClientView^) | Invalidates the feedback from the mouse action.(Inherited from MouseAction.) |
![]() | LostFocus(DiagramEventArgs^) | Removes focus from the mouse action.(Inherited from MouseAction.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | MouseDown(DiagramMouseEventArgs^) | Performs actions for derived classes when a user clicks the mouse.(Inherited from MouseAction.) |
![]() | MouseEnter(DiagramPointEventArgs^) | Performs actions for derived classes when the mouse points to a shape in the diagram.(Inherited from MouseAction.) |
![]() | MouseHover(DiagramPointEventArgs^) | Performs actions for derived classes when the user points to an area or an element in the diagram.(Inherited from MouseAction.) |
![]() | MouseLeave(LeaveShapeEventArgs^) | Performs actions for derived classes when the mouse no longer points to the shape in the diagram.(Inherited from MouseAction.) |
![]() | MouseMove(DiagramMouseEventArgs^) | Performs actions for derived classes when the user moves the mouse over the diagram.(Inherited from MouseAction.) |
![]() | MouseUp(DiagramMouseEventArgs^) | Performs actions for derived classes when the user releases the mouse button.(Inherited from MouseAction.) |
![]() | MouseWheel(DiagramMouseEventArgs^) | Performs actions for derived classes when the user rotates the mouse wheel.(Inherited from MouseAction.) |
![]() | OnClicked(MouseActionEventArgs^) | (Overrides SelectAction::OnClicked(MouseActionEventArgs^).) |
![]() | OnContextMenuRequested(DiagramMouseEventArgs^) | Should cancel connect action on context menu as it throws exceptions otherwise because target and source elements could be null in this case.(Overrides SelectAction::OnContextMenuRequested(DiagramMouseEventArgs^).) |
![]() | OnDiagramGotFocus(DiagramEventArgs^) | Alerts listeners that the diagram has the focus.(Inherited from MouseAction.) |
![]() | OnDiagramLostFocus(LostFocusEventArgs^) | Cancels the action if the view loses the focus.(Inherited from SelectAction.) |
![]() | OnDiagramScrolled(DiagramEventArgs^) | Called when a Scrolled event has been dispatched to this MouseAction.(Overrides MouseAction::OnDiagramScrolled(DiagramEventArgs^).) |
![]() | OnDoubleClick(DiagramPointEventArgs^) | Alerts listeners that the user has double-clicked the mouse.(Inherited from MouseAction.) |
![]() | OnDragCanceled(MouseActionEventArgs^) | Alerts listeners that the drag operation has been canceled.(Inherited from MouseAction.) |
![]() | OnDragCompleted(MouseActionEventArgs^) | (Overrides MouseAction::OnDragCompleted(MouseActionEventArgs^).) |
![]() | OnDraggingBegun(MouseActionEventArgs^) | (Overrides MouseAction::OnDraggingBegun(MouseActionEventArgs^).) |
![]() | OnDraggingEnded(MouseActionEventArgs^) | Alerts listeners that the drag operation has ended.(Inherited from MouseAction.) |
![]() | OnDragPendingBegun(MouseActionEventArgs^) | Alerts listeners that the drag operation is pending.(Inherited from MouseAction.) |
![]() | OnDragPendingEnded(MouseActionEventArgs^) | Alerts listeners that the drag operation is no longer pending.(Inherited from MouseAction.) |
![]() | OnHoveringBegun(MouseActionEventArgs^) | Alerts listeners that the mouse is hovering over the diagram.(Inherited from MouseAction.) |
![]() | OnHoveringEnded(MouseActionEventArgs^) | Alerts listeners that the mouse is no longer hovering over the diagram.(Inherited from MouseAction.) |
![]() | OnMouseActionActivated(DiagramEventArgs^) | |
![]() | OnMouseActionCanceled(DiagramEventArgs^) | |
![]() | OnMouseActionCompleted(DiagramEventArgs^) | Alerts listeners that the mouse action has completed.(Inherited from MouseAction.) |
![]() | OnMouseActionDeactivated(DiagramEventArgs^) | |
![]() | OnMouseDown(DiagramMouseEventArgs^) | (Overrides SelectAction::OnMouseDown(DiagramMouseEventArgs^).) |
![]() | OnMouseEnter(DiagramPointEventArgs^) | Alerts listeners that the mouse has moved over a shape in the diagram.(Inherited from MouseAction.) |
![]() | OnMouseHover(DiagramPointEventArgs^) | Alerts listeners that the mouse is pointing to an area or an element in the diagram.(Inherited from MouseAction.) |
![]() | OnMouseLeave(LeaveShapeEventArgs^) | (Overrides MouseAction::OnMouseLeave(LeaveShapeEventArgs^).) |
![]() | OnMouseMove(DiagramMouseEventArgs^) | (Overrides MouseAction::OnMouseMove(DiagramMouseEventArgs^).) |
![]() | OnMouseUp(DiagramMouseEventArgs^) | (Overrides MouseAction::OnMouseUp(DiagramMouseEventArgs^).) |
![]() | OnMouseWheel(DiagramMouseEventArgs^) | Alerts listeners that the user has rotated the mouse wheel.(Inherited from MouseAction.) |
![]() | ReleaseMouse(DiagramClientView^) | Alerts listeners that the user has released the mouse button.(Inherited from MouseAction.) |
![]() | Scrolled(DiagramEventArgs^) | Alerts listeners that the user has scrolled the diagram.(Inherited from MouseAction.) |
![]() | Select(DiagramMouseEventArgs^) | Selects the first selectable diagram item (shape, field, or subfield) under the mouse cursor and sets focus to the first item that can receive focus.(Inherited from SelectAction.) |
![]() | ToString() | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | MouseActionActivated | Occurs when a mouse action starts.(Inherited from MouseAction.) |
![]() | MouseActionDeactivated | Occurs when a mouse action ends.(Inherited from MouseAction.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




