Back to Devexpress

TcxComponentCollectionItem Class

vcl-cxclasses-fa80def2.md

latest2.2 KB
Original Source

TcxComponentCollectionItem Class

An abstract uniform object stored within a component collection.

Declaration

delphi
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

TObject TPersistent TComponent TcxCustomComponent TcxComponentCollectionItem

See Also

TcxComponentCollectionItem Members

cxClasses Unit