Vcl.Outline.TCustomOutline.Items

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Items[Index: LongInt]: TOutlineNode read Get; default;

C++

__property TOutlineNode* Items[int Index] = {read=Get/*, default*/};

Properties

Type Visibility Source Unit Parent
property public
Vcl.Outline.pas
Vcl.Outline.hpp
Vcl.Outline TCustomOutline

Description

Lists the nodes in the outline.

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:Outline1.Items[1].Text := Edit1.Text;can also be written:Outline1[1].Text := Edit1.Text;

In C++, Items can be accessed using the [] operator, to achieve an affect similar to the default property in Delphi.

See Also