Skip to main content

TcxComponentCollectionItem Class

An abstract uniform object stored within a component collection.

Declaration

TcxComponentCollectionItem = class(
    TcxCustomComponent
)

Remarks

This is the base class for all classes that implement uniform objects stored in a TcxComponentCollection class descendant instance.

The TcxComponentCollectionItem class extends its ancestor with the following members that allow you to:

  • Specify the collection for storing the object and its position (Collection and Index);

  • Obtain the collection element’s name displayed within the Collection Editor dialog (DisplayName);

  • Obtain the collection element’s unique component identifier (ID);

  • Access the parent component of the collection to which the object belongs (GetParentComponent);

  • Add/remove the object to/from the specified collection (AddToCollection and RemoveFromCollection);

  • Add the object to a collection associated with the specified component (SetParentComponent).

You do not need to create instances of the TcxComponentCollectionItem class. Use its descendants instead.

Inheritance

See Also