BinaryLinkShapeBase::Connect Method (NodeShape^, NodeShape^)
Visual Studio 2015
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.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
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.
Show: