Search
FlowLayout.InsertNode Method
See Also
 





Inserts the specified node between two nodes connected by the by specified link.

Namespace: MindFusion.Diagramming.Layout
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public bool InsertNode (
    DiagramNode node,
    DiagramLink linkToSplit,
    Diagram diagram
)

Visual Basic  Copy Code

Public Function InsertNode( _
    node As DiagramNode, _
    linkToSplit As DiagramLink, _
    diagram As Diagram _
) As Boolean

 Parameters

node
The DiagramNode to insert.
linkToSplit
The DiagramLink to split.
diagram
A Diagram instance.

 Return Value

true if the node has been added successfully; otherwise, false.

 Remarks

You can use InsertNode to implement incremental layout of a diagram, for example, by adding new nodes drawn by the user or added through a context menu command. For this method to work correctly, RecreateGraph must be disabled.

 See Also