ASP.NET Pack Programmer's Guide
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
Package: 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. For further customization of the link, use the properties and methods of the DiagramLink class.

 See Also

CreateDiagramLink Method Overload List
Factory Members
Factory Class
MindFusion.Diagramming Namespace
CreateShapeNode Method
CreateTableNode Method
Links Property