Skip to main content
Table of Contents

TTMSFNCTreeViewData.InsertNode Method

Inserts a node at a specific position under an optional parent node.

API unit family: TMSFNCTreeViewData Declaring type: TTMSFNCTreeViewData

Syntax

FMX.TMSFNCTreeViewData.hppPascalC++
function InsertNode(AIndex: Integer; AParentNode: TTMSFNCTreeViewNode = nil): TTMSFNCTreeViewNode; virtual;
virtual TTMSFNCTreeViewNode* __fastcall InsertNode(int AIndex, TTMSFNCTreeViewNode* AParentNode = (TTMSFNCTreeViewNode*)(0x0));

Parameters

Name Description
AIndex The insert position.
AParentNode The parent node, or nil to insert a root node.

Returns

The newly created node.