RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomOutline.Items Property

Lists the nodes in the outline.

Pascal
property Items [Index: LongInt]: TOutlineNode;
C++
__property TOutlineNode Items[LongInt Index];

Use Items to access a node in the outline. Each item is a TOutlineNode object. 

Index is a number specifying the node to return, where Items[0] refers to the root, Items[1] is the first (topmost) node, and so on.

Note: Items is the default property of TCustomOutline. This means that the name of the property may be omitted in code. Thus the line
Note: Outline1.Items[1].Text := Edit1.Text;
Note: can also be written
Note: Outline1[1].Text := Edit1.Text;
Note: In C++, Items can be accessed using the [] operator, to achieve an affect similar to the default property in Delphi.
 

 

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