Search
Factory.CreateDiagramLink Method (ShapeNode, Int32, ShapeNode, Int32)
See Also
 






Creates a new DiagramLink instance between the specified nodes and adds it to the Links collection of the underlying diagram.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public DiagramLink CreateDiagramLink (
    ShapeNode origin,
    int originAnchor,
    ShapeNode destination,
    int destAnchor
)

Visual Basic  Copy Code

Public Function CreateDiagramLink( _
    origin As ShapeNode, _
    originAnchor As Integer, _
    destination As ShapeNode, _
    destAnchor As Integer _
) As DiagramLink

 Parameters

origin

The origin node.

originAnchor

The index of an anchor point within the origin node's AnchorPattern.

destination

The destination node.

destAnchor

The index of an anchor point within the destination node's AnchorPattern.

 Return Value

The newly created DiagramLink instance.

 Remarks

The method creates a link connecting the shape nodes specified by origin and destination.

 See Also