Vcl.ComCtrls.TTreeNodes.AddFirst

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AddFirst(Sibling: TTreeNode; const S: string): TTreeNode;

C++

TTreeNode* __fastcall AddFirst(TTreeNode* Sibling, const System::UnicodeString S);

Properties

Type Visibility Source Unit Parent
function public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TTreeNodes

Description

Adds a new tree node to a tree view.

The node is added as the first sibling of the node specified by the Sibling parameter. Nodes that appear after the added node are moved down one row and re-indexed with valid Index values. The S parameter specifies the Text property of the new node. AddFirst returns the node that has been added.

See Also