Sign in Join
FPDoc Onlineexperiment

TCustomTreeView.KeepCollapsedNodes property

Member of TCustomTreeViewpublicIn unit ComCtrls

Indicates whether a node keeps its child nodes when it is collapsed.

Declaration

pascal
property KeepCollapsedNodes: Boolean read GetKeepCollapsedNodes write SetKeepCollapsedNodes;

Description

KeepCollapsedNodes is a Boolean property which indicates whether a tree node keeps its child nodes when the node is collapsed. When set to False (the default value), a tree node will free it child nodes when the node is collapsed.

KeepCollapsedNodes is assigned to the corresponding property in Items, and made available to TTreeNode instances in the container using their Owner property.

Changing the property value causes Options and Items to be updated. When set to True, tvoKeepCollapsedNodes is included in Options. Otherwise, tvoKeepCollapsedNodes is excluded from Options. The new value for the property is assigned to the KeepCollapsedNodes property in Items.

KeepCollapsedNodes is used in the DoExpand method in TTreeNode when the node is being collapsed.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.