RAD Studio VCL Reference
TCollection.Deleting Method

Responds when items are deleted from the collection.

procedure Deleting(Item: TCollectionItem); virtual; deprecated;
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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!