Vcl.ComCtrls.TTreeNodes.Item

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Item[Index: Integer]: TTreeNode read GetNodeFromIndex; default;

C++

__property TTreeNode* Item[int Index] = {read=GetNodeFromIndex/*, default*/};

Properties

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

Description

Lists all tree nodes managed by the TTreeNodes object.

Use Item to access to a node by its position in the tree view. The first node has an index of 0, the second an index of 1, and so on.

Note: Item is the default property for TTreeNodes. This means that the name of the Item property can be omitted when indexing into the set of tree nodes. Thus, the line



FirstNode := TreeView1.Items.Item[0];



Note: can be written



FirstNode := TreeView1.Items[0];



See Also