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.AddChildFirst(TdxTreeViewNode,string) Method

Prepends a new child node to the specified node.

#Declaration

Delphi
function AddChildFirst(AParent: TdxTreeViewNode; const S: string): TdxTreeViewNode;

#Parameters

Name Type Description
AParent TdxTreeViewNode

A target node. If AParent is nil (in Delphi) or nullptr (in C++Builder), the node is added to the root node.

S string

A node caption.

#Returns

Type Description
TdxTreeViewNode

The created node.

#Remarks

An AddChildFirst function call creates a new node with the default settings, assigns the S parameter value to the created node’s Caption property, and prepends the node to the parent node’s Items collection.

See Also