System.Contnrs.TClassList.Items
Delphi
property Items[Index: Integer]: TClass read GetItems write SetItems; default;
C++
__property System::TClass Items[int Index] = {read=GetItems, write=SetItems/*, default*/};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.Contnrs.pas System.Contnrs.hpp |
System.Contnrs | TClassList |
Description
Lists the classes in the TClassList.
Use Items to access classes in the list. Items is a zero-based array: The first class is indexed as 0, the second class is indexed as 1, and so forth. You can read or change the value at a specific index, or use Items with the Count property to iterate through the list.
Items can contain empty class references. To remove empty references and reduce the size of the array, call the Pack method.
Note: In Delphi, Items is the default property for TClassList. This means that the property name can be omitted in code. Thus, the following two lines are both acceptable and do the same thing:
RegisterClass(ClassList1.Items[i]); RegisterClass(ClassList1[i]);
Note: In C++, Items can be accessed using the [] operator, to achieve an affect similar to the default property in Delphi.