[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Class used to save and restore the expanded state of a TTreeView.
Source position: comctrls.pp line 3901
type TTreeNodeExpandedState = class |
||
public |
||
NodeText: string; |
|
NodeText - the text in the current node. |
Children: TAvlTree; |
|
Children - the children of the current node, as an AvgLvlTree. |
constructor Create(); |
|
Constructor for the class instance. |
destructor Destroy; override; |
|
Destructor for the class instance. |
procedure Clear; |
|
Clear the expanded nodes for the tree structure. |
procedure CreateChildNodes(); |
|
CreateChildNodes - constructor for the child nodes. |
procedure Apply(); |
|
Used to restore the expanded state for a node or tree view. |
property OnGetNodeText: TTVGetNodeText; [rw] |
|
Event handler signalled to get the text for the specified tree node. |
end; |
|
Class used to save and restore the expanded state of a TTreeView. |
|
| | ||
TObject |
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;
|
TTreeView is a control that displays a hierarchical list of items. |
Version 3.2 | Generated 2024-02-25 | Home |