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.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!