RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCollection.Deleting Method

Responds when items are deleted from the collection.

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

Applications can't call the protected Deleting method. The Delete method calls Deleting immediately before it removes an item from the collection. 

Item is the item that is about to be removed. 

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

 

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