Skip to main content

TdxTreeViewNodes.InsertObject(TdxTreeViewNode,string,Pointer) Method

Inserts a new node at the same nesting level immediately prior the target node.

Declaration

function InsertObject(ASibling: TdxTreeViewNode; const S: string; AData: Pointer): TdxTreeViewNode;

Parameters

Name Type Description
ASibling TdxTreeViewNode

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

S string

A node caption.

AData Pointer

A pointer to specific data.

Returns

Type Description
TdxTreeViewNode

The inserted node.

See Also