Sign in Join
FPDoc Onlineexperiment

TTreeNodeExpandedState class

In unit ComCtrls

Class used to save and restore the expanded state of a TTreeView.

Declaration

pascal
TTreeNodeExpandedState = class

Description

TTreeNodeExpandedState is a class used to save and restore the expanded state of a TTreeView. The nodes are identified by their Text property.

Usage example:

// save old expanded state
OldExpanded := TTreeNodeExpandedState.Create(ATreeView);
// ... change a lot of nodes ...
// restore old expanded state
OldExpanded.Apply(ATreeView);
OldExpanded.Free;

See also

Methods

CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.
ClearpublicClear the expanded nodes for the tree structure.
CreateChildNodespublicCreateChildNodes - constructor for the child nodes.
ApplypublicUsed to restore the expanded state for a node or tree view.

Events

OnGetNodeTextpublicEvent handler signalled to get the text for the specified tree node.

Fields

NodeTextpublicNodeText - the text in the current node.
ChildrenpublicChildren - the children of the current node, as an AvgLvlTree.

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