Vcl.ComCtrls.TTreeNodes.Add

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

TTreeNode* __fastcall Add(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 control.

The node is added as the last sibling of the Sibling parameter. The S parameter specifies the Text property of the new node. Add returns the node that has been added. If the tree view is sorted, Add inserts the node in the correct sort order position rather than as the last child of the Sibling parameter's parent.

See Also

Code Examples