"expandToDepth"

The function allows to expand all nodes inside of a tree up to a specified depth.

Synopsis

shape.expandToDepth(int depth);

Parameter

Parameter Description
shape Name of the object.
depth Depth to which the tree should be expanded.

Description

The function allows to expand all nodes inside of a tree up to the specified depth.

Example

All nodes of the tree "TREE1" are expanded up to the depth of 2.

main ()
{
  TREE1.expandToDepth(2();
}

Assignment

Tree Widget