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
fromShape
Type: Microsoft.VisualStudio.Modeling.Diagrams.NodeShapeNodeShape at the From end of the relationship.
toShape
Type: Microsoft.VisualStudio.Modeling.Diagrams.NodeShapeNodeShape at the To end of the relationship.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.