Icon TCollection

Unit: WebCore

Inherits From TPersistent

Available In: Client and Server Applications

The TCollection class represents a list of TCollectionItem descendant class instances, and is used to create lists of instances that can be automatically persisted at design-time and run-time. For example, the standard component library uses the TCollection class as the ancestor for the TDataColumns class so that TDataSet instance columns can be persisted with forms.

Information Collections always own all items in the collection and will automatically dispose of all items in the collection when the collection is destroyed.