TdxTreeCustomNode.AddNode(TdxTreeCustomNode,TdxTreeCustomNode,Pointer,TdxTreeNodeAttachMode) Method
Adds a node.
Declaration
function AddNode(ANode: TdxTreeCustomNode; ARelative: TdxTreeCustomNode; AData: Pointer; AttachMode: TdxTreeNodeAttachMode): TdxTreeCustomNode;
Parameters
| Name | Type | Description |
|---|---|---|
| ANode | TdxTreeCustomNode | An existing tree node. If ANode is nil (in Delphi) or nullptr (in C++Builder), the function creates a new node with the default settings. |
| ARelative | TdxTreeCustomNode | A target node. The AttachMode parameter defines the position of the added node in relation to the target node. If ARelative is nil (in Delphi) or nullptr (in C++Builder), the node is added to the root node. |
| AData | Pointer | A pointer to additional data. The function call assigns this parameter to the added node’s Data property only if the AddNode function creates the node. |
| AttachMode | TdxTreeNodeAttachMode | A node attachment mode. |
Returns
| Type | Description |
|---|---|
| TdxTreeCustomNode | The added node. |
See Also