TcxInterfacedCollectionItem Class
The base class for all classes that implement collection items with support for one or more interfaces.
Declaration
TcxInterfacedCollectionItem = class(
TCollectionItem,
IInterface
)
Remarks
VCL provides both the manual and automatic class instance management models. In the latter case, an application automatically releases an object when no other object accesses it via an interface. Each object accessible via an interface (that is, an interfaced object) has a dedicated reference counter, and the application frees up such an object when its reference counter reaches 0. Different objects can provide different implementations of the _AddRef and _Release functions designed to increment and decrement the corresponding reference counter every time a reference is created or destroyed.
The TcxInterfacedCollectionItem class provides the basic IUnknown interface implementation, so that all class descendants rely on the reference counter-related functionality of their parent collections or do not use a reference counter if the parent collection does not use it either. Most collection implementations in DevExpress products provide a fully functional API for item management, and their destructors automatically release all items.
Do not use the TcxInterfacedCollectionItem class directly. Use its descendants instead.