TTMSFNCTreeViewNode Class
Represents a data node in the tree, holding per-column values, child nodes, check state, and expand/enable flags.
API unit family: TMSFNCTreeViewData
Inherits from: TCollectionItem
Syntax
TTMSFNCTreeViewNode = class(TCollectionItem)
Properties
| Name | Description |
|---|---|
| CheckTypes | Gets or sets the check control type for the specified column. |
| Checked | Gets or sets the checked state for the specified column. |
| CollapsedIconNames | Gets or sets the collapsed-state icon name for the specified column and size. |
| CollapsedIcons | Gets or sets the collapsed-state icon for the specified column and size. |
| DBKey | Database key used to map this node to a dataset record when a database adapter is active. |
| DataBoolean | User-defined Boolean for storing application data on this node. |
| DataInteger | User-defined integer for storing application data on this node. |
| DataObject | User-defined object reference for storing application data on this node. |
| DataPointer | User-defined pointer for storing arbitrary application data on this node. |
| DataString | User-defined string for storing application data on this node. |
| Enabled | True enables interaction with this node. Default: True. |
| Expanded | True expands this node when the tree is loaded. Default: False. |
| ExpandedIconNames | Gets or sets the expanded-state icon name for the specified column and size. |
| ExpandedIcons | Gets or sets the expanded-state icon for the specified column and size. |
| Extended | True shows an additional title row above this node's cell content. Default: False. |
| Nodes | Child nodes of this node. |
| StrippedHTMLText | Returns the cell text for the specified column with all HTML tags removed. |
| Tag | User-defined integer for application use. |
| Text | Gets or sets the cell text for the specified column. |
| Values | Per-column cell values for this node. |
| VirtualNode | The virtual node currently mapped to this data node during rendering; nil when the node is not visible. |
Methods
| Name | Description |
|---|---|
| AssignData | Copies only the data fields (text values, check states, icons, tag, data slots) from Source. |
| Collapse | Collapses this node. |
| CopyTo | Copies this node to a new parent, optionally at a specific child index. |
| Expand | Expands this node. |
| GetChildCount | Returns the number of direct child nodes. |
| GetFirstChild | Returns the first child node, or nil when this node has no children. |
| GetLastChild | Returns the last child node, or nil when this node has no children. |
| GetNext | Returns the next node in document order, or nil when this is the last node. |
| GetNextChild | Returns the child node that follows ANode, or nil when ANode is the last child. |
| GetNextSibling | Returns the next sibling node, or nil when this is the last child of its parent. |
| GetParent | Returns the parent node, or nil for root-level nodes. |
| GetPrevious | Returns the previous node in document order, or nil when this is the first node. |
| GetPreviousChild | Returns the child node that precedes ANode, or nil when ANode is the first child. |
| GetPreviousSibling | Returns the previous sibling node, or nil when this is the first child of its parent. |
| LoadFromString | Restores this node's properties and descendants from a previously serialised string. |
| MoveTo | Moves this node to a new parent, optionally at a specific child index. |
| RemoveChildren | Removes all child nodes from this node. |
| SaveToString | Serialises this node and its descendants to a string. |
| SetCheckStates | Sets the checked state for all columns at once. |
| SetCheckTypes | Sets the check control type for all columns at once. |
| SetCollapsedIconNames | Assigns collapsed-state icon names for all columns at once. |
| SetCollapsedIcons | Assigns collapsed-state icons for all columns at once. |
| SetExpandedIconNames | Assigns expanded-state icon names for all columns at once. |
| SetExpandedIcons | Assigns expanded-state icons for all columns at once. |
| SetTextValues | Sets the cell text for all columns at once. |
| TreeView | Returns the tree view data object that owns this node. |