Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Adds a node.

#Declaration

Delphi
function AddNode(ANode: TdxTreeViewNode; ARelative: TdxTreeViewNode; const S: string; 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.

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 AddNode function creates the node.

AttachMode TdxTreeNodeAttachMode

A node attachment mode.

#Returns

Type Description
TdxTreeViewNode

The created node.

See Also