RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TClassList.Items Property

Lists the classes in the TClassList.

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

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.
 

Count 

List 

Pack 

Delete 

Remove 

Clear 

Add 

Insert 

operator_sb

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