Share via


BinaryLinkShapeBase.Connect Method

Creates the 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)

Syntax

'Declaration
Public Overridable Sub Connect ( _
    fromShape As NodeShape, _
    toShape As NodeShape _
)
public virtual void Connect(
    NodeShape fromShape,
    NodeShape toShape
)
public:
virtual void Connect(
    NodeShape^ fromShape, 
    NodeShape^ toShape
)
abstract Connect : 
        fromShape:NodeShape * 
        toShape:NodeShape -> unit  
override Connect : 
        fromShape:NodeShape * 
        toShape:NodeShape -> unit
public function Connect(
    fromShape : NodeShape, 
    toShape : NodeShape
)

Parameters

Remarks

The 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.

.NET Framework Security

See Also

Reference

BinaryLinkShapeBase Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace