Search
Box.Collapse Method
See Also
 



Collapses the tree branch that starts from this box.

 Syntax

VB6  Copy Code

Public Sub Collapse ()

C++  Copy Code

public:
void Collapse ()

 Remarks

When using FlowChartX to represent hierarchical structure as a tree you might want to hide a branch of the tree. Invoking the Collapse method on a box will make the box children (arrows and other boxes) invisible. It depends on the ExpandOnIncoming property, which objects connected to the box are considered its children. This method is meant for use only with tree-like structures and it is your responsibility to ensure that your diagram is really a tree. A graph is a tree if every box has no more than one parent and there's one root box that can be reached from all boxes going in child-parent direction. The tree can be expanded again using Expand.

 See Also