System.Classes.TCollection.Update

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Update(Item: TCollectionItem); virtual;

C++

virtual void __fastcall Update(TCollectionItem* Item);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.Classes.pas
System.Classes.hpp
System.Classes TCollection

Description

Updates the collection to reflect changes to its items.

Override Update in a descendent class to make any necessary changes when the items in the collection change. This method is called automatically when an update is complete.

Item identifies the item that changed. If the Item parameter is nil (Delphi) or NULL (C++), then the change affects more than one item in the collection.

As implemented in TCollection, Update does nothing. Descendent classes override this method to make any necessary adjustments.

See Also