RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TClassList.Add Method

Inserts a new class at the end of the list.

Pascal
function Add(AClass: TClass): Integer;
C++
__fastcall int Add(TClass AClass);

Call Add to insert a new class at the end of the Items array. Add returns the index of the new class, where the first class in the list has an index of 0. 

Add increments Count and, if necessary, allocates memory by increasing the value of Capacity. 

 

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