Skip to content

TObservedHook.AddItem

Notifies observers that an item was added

Declaration

Source position: fpobserver.pp line 44

public 
procedure TObservedHook.AddItem(AItem: TObject);

Description

The AddItem method sends an item addition notification to all observers using the ooAddItem operation. The added item is passed as the data parameter.

This notification is typically used by collection-like objects to inform observers when new items are added to the collection.

See also

Name Description
DeleteItem Notifies observers that an item was deleted
Changed Notifies all observers that the object has changed
CustomNotify Sends custom notification to all observers
FPONotifyObservers Core method to notify all observers about operations