BinaryLinkShapeBase.Connect(NodeShape, NodeShape) Method

Definition

Creates the ElementLink relationships needed to connect the two specified NodeShapes. If this BinaryLinkShape is already on a Diagram, then also connect up the GraphEdge as well. If not, then the GraphEdge is connected up when the BinaryLinkShape is added to a Diagram.

public:
 virtual void Connect(Microsoft::VisualStudio::Modeling::Diagrams::NodeShape ^ fromShape, Microsoft::VisualStudio::Modeling::Diagrams::NodeShape ^ toShape);
public virtual void Connect (Microsoft.VisualStudio.Modeling.Diagrams.NodeShape fromShape, Microsoft.VisualStudio.Modeling.Diagrams.NodeShape toShape);
abstract member Connect : Microsoft.VisualStudio.Modeling.Diagrams.NodeShape * Microsoft.VisualStudio.Modeling.Diagrams.NodeShape -> unit
override this.Connect : Microsoft.VisualStudio.Modeling.Diagrams.NodeShape * Microsoft.VisualStudio.Modeling.Diagrams.NodeShape -> unit
Public Overridable Sub Connect (fromShape As NodeShape, toShape As NodeShape)

Parameters

fromShape
NodeShape

NodeShape on the From end of the relationship.

toShape
NodeShape

NodeShape on the To end of the relationship.

Applies to