TTreeNode.Expand procedure
Expands the current tree node, and optionally all descendent nodes.
Declaration
procedure Expand(Recurse: Boolean)Arguments
Recurse | True to expand all descendent nodes for the node. |
Description
Expand calls the private ExpandItem method to perform the
expansion (and optional recursion) for child tree nodes. The private method
calls the BeginUpdate and EndUpdate methods in the TreeView control to reduce
the number of updates performed when the tree node(s) are expanded.
The Expanded property for the node (and its child nodes when Recurse is enabled) is set to True when a node is expanded on the TreeView control. Use the OnExpanding event handler in the TreeView control to examine an individual tree node before it is expanded.
This topic mentions the private method because it has an impact on the calling
routine. Not sure this deserves a version admonition though.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
