TPrxTreeNode
The TPrxTreeNode class represents a node in the tree.
Properties
- ID: read-only run-time property; identifies the node within the tree
- Icon: the integer index of the icon in the Icons property of the parent TPrxTreeView class (e.g. 0 for “Icon1=folder.gif” or 1 for “Icon2=folderopen.gif” in the demo)
- Text: the text to be shown in the tree; the format may be plain (UTF8) text or any valid HTML
- ToolTip: tooltip to be shown when the mouse pointer hovers over the tree node
- Parent: read-only run-time property; the parent node of this node
- ChildCount: number of direct sub-nodes
- Children[]: you can access all the direct sub-nodes with this array property
- ExternalID: the application can store any value in this string property
- Tag: the application can store any value in this string property
- Data: the application can store any value in this property
- IconOpened: the integer index of the icon to be used when the node is expanded in the Icons property of the parent TPrxTreeView class (e.g. 0 for “Icon1=folder.gif” or 1 for “Icon2=folderopen.gif” in the demo)
- HasDynamicChildren: if True, then ItemExpanded event will fire in the parent tree when the node is expanded
Methods
- AddChild: add a single child
- RemoveChild: remove a single child (and all its children)
- RemoveChildren: remove all sub-nodes
- Expand: expand this node
- Collapse: collapse this node
