Hides all nodes and links in the subtree starting from this node.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public void Collapse () |
Visual Basic Copy Code |
---|
Public Sub Collapse () |
This method is useful mostly when nodes form a tree-like hierarchical structure. Invoking Collapse on a node makes all its children in the tree invisible. It depends on the diagram's ExpandOnIncoming property which items connected to the node are considered its children.
Collapse is meant for use with tree structures and it is your responsibility to ensure that your chart is really a tree. A graph is a tree if every node has no more than one parent and there's one root node that can be reached from all nodes going in child-to-parent direction. The tree can be expanded again by calling the Expand method.