BinaryLinkShapeBase::Connect Method (NodeShape^, NodeShape^)

 

Creates the T:Microsoft.VisualStudio.Modeling.Diagrams.ElementLink relationships needed to connect the specified NodeShape. 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.

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

public:
virtual void Connect(
	NodeShape^ fromShape,
	NodeShape^ toShape
)

Parameters

fromShape
Type: Microsoft.VisualStudio.Modeling.Diagrams::NodeShape^

NodeShape at the From end of the relationship.

toShape
Type: Microsoft.VisualStudio.Modeling.Diagrams::NodeShape^

NodeShape at the To end of the relationship.

The T:Microsoft.VisualStudio.Modeling.Diagrams.ElementLink relationships relate this link shape to the node shapes at each end. The GraphEdge is the object that draws the links in the underlying graphics implementation.

Return to top
Show: