RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTreeNodes.Item Property

Lists all tree nodes managed by the TTreeNodes object.

Pascal
property Item [Index: Integer]: TTreeNode;
C++
__property TTreeNode Item[int Index];

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];

 

AbsoluteIndex 

operator_[]

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!