TdxTreeViewNodes.AddNode(TdxTreeViewNode,TdxTreeViewNode,string,Pointer,TdxTreeNodeAttachMode) Method
Adds a node.
#Declaration
function AddNode(ANode: TdxTreeViewNode; ARelative: TdxTreeViewNode; const S: string; AData: Pointer; AttachMode: TdxTreeNodeAttachMode): TdxTreeViewNode;
#Parameters
Name | Type | Description |
---|---|---|
ANode | Tdx |
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 | Tdx |
A target node. The Attach |
S | string | A node caption. |
AData | Pointer | A pointer to additional data. The function call assigns this parameter to the added node’s Data property only if the Add |
Attach |
Tdx |
A node attachment mode. |
#Returns
Type | Description |
---|---|
Tdx |
The created node. |