[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'ComboEx' (#lcl)

TComboExItem.Destroy

Destructor for the class instance.

Declaration

Source position: comboex.pas line 85

public destructor TComboExItem.Destroy; override;

Description

Destroy is the overridden destructor for the class instance.

Destroy ensures that the number of items in the Collection and the Owner for the collection are kept in sync. Normally, the value in Count is maintained when the Collection frees an item instance in its Delete method. Destroy handles the situation where the collection item is destroyed by calling the Free method in the collection item instead.

A component notification message is performed for the Collection to signal the delete operation. The Notify method in Collection is not called when Collection is unassigned or does not have an Owner, or when the Owner of the Collection is being freed.

Destroy calls the inherited destructor prior to exiting from the method.

See also

TComboExItems.Notify

  

Performs component notifications when a collection item is added to or removed from the Collection.

TListControlItems.Items

  

Provides indexed access to the list of items maintained in the collection.

TCollectionItem.Collection

TCollection.Owner

TCollection.Count

TCollection.Delete

TComponent.ComponentState


Version 4.0 Generated 2025-05-03 Home