TPrxTreeNodes
The TPrxTreeNodes class provides a Delphi like API for controlling the nodes in a tree (the TPrxTreeView.Items property is of this typle).
Properties
- Count: the number of direct sub-nodes
- Items[]: an array property to access all nodes of the tree; root nodes have no parents (their Parent property is Nil/Null) — if you want to navigate the tree then first you should find the root node(s) and then use their Children properties to navigate sub-nodes
Methods
- AddChild: add one node to the specified parent; returns the created node
- AddSubtreeJSON: add a complete sub-tree to the specified parent; the sub-tree is specified in JSON format (see the source code for syntax description)
- Clear: delete all nodes
- Delete: delete one node (and all its children)
