ASP.NET Pack Programmer's Guide
FlowLayout.AddNode Method
See Also
 





Adds the specified node to the already arranged diagram.

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

 Syntax

C#  Copy Code

public bool AddNode (
    DiagramNode node,
    Diagram diagram
)

Visual Basic  Copy Code

Public Function AddNode( _
    node As DiagramNode, _
    diagram As Diagram _
) As Boolean

 Parameters

node
A DiagramNode instance.
diagram
A Diagram instance.

 Return Value

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

 Remarks

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

 See Also

FlowLayout Members
FlowLayout Class
MindFusion.Diagramming.Layout Namespace