Vcl.ComCtrls.TTreeNodes.AddObjectFirst

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AddObjectFirst(Sibling: TTreeNode; const S: string; Ptr: TCustomData): TTreeNode;

C++

TTreeNode* __fastcall AddObjectFirst(TTreeNode* Sibling, const System::UnicodeString S, void * Ptr);

Properties

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

Description

Adds a new node containing data to a tree view.

The node is added first to the list to which the node specified by the Sibling parameter belongs. Nodes that appear after the added node are moved down one row and reindexed with valid Index values. The S parameter specifies the Text property of the new node. The Ptr parameter specifies the Data property value of the new node. AddObjectFirst returns the node that has been added.

See Also