RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TListControlItems.Items Property

Lists the items in the collection.

Pascal
property Items [const Index: Integer]: TListControlItem;
C++
__property TListControlItem Items[int const Index];

Use Items to access the items in this collection. 

Index indicates the item to access, where 0 is the index of the first item, 1 is the index of the second item, and so on. The Count property indicates the maximum number of items.

Note: In Delphi code, Items is the default property for TListControlItems. This means that the property name can be omitted when using the Items property. For example,

StaticListAction.Items.Items[0].Caption := Edit1.Text;

Note: can also be written

StaticListAction.Items[0].Caption := Edit1.Text;

Note: Items is a read-only property. To add or delete items from the collection, use the Add and Delete methods.
 

Add 

Delete 

Count 

operator_[]

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