RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCollection.Added Method

Responds when items are added to the collection.

Pascal
procedure Added(var Item: TCollectionItem); virtual; deprecated;
C++
virtual __fastcall Added(TCollectionItem Item);

Applications can't call the protected Added method. It is called automatically immediately after items are added to the collection. 

Item is the item that was just added to the collection. 

Added is a deprecated method. Descendant classes should override the Notify method instead when responding to changes in the list of items. 

 

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