Skip to main content

TdxTreeViewNode.AddNode(TdxTreeViewNode,TdxTreeViewNode,Pointer,TdxTreeNodeAttachMode) Method

Adds a node.

Declaration

function AddNode(ANode: TdxTreeViewNode; ARelative: TdxTreeViewNode; AData: Pointer; AttachMode: TdxTreeNodeAttachMode): TdxTreeViewNode;

Parameters

Name Type Description
ANode TdxTreeViewNode

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 TdxTreeViewNode

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. This parameter value is assigned to the added node’s Data property only if an AddNode function call created the node.

AttachMode TdxTreeNodeAttachMode

A node attachment mode.

Returns

Type Description
TdxTreeViewNode

The added node.

See Also