Skip to main content

TcxComponentCollectionItem.AddToCollection(TcxComponentCollection) Method

Adds the current collection element to a collection.

Declaration

procedure AddToCollection(ACollection: TcxComponentCollection);

Parameters

Name Type
ACollection TcxComponentCollection

Remarks

Call the AddToCollection method to add the current collection element to the collection specified by the ACollection parameter. Firstly the collection element is removed from the collection that owns it and then added as the last element to the specified collection (thus the element’s ID and Index properties are modified accordingly).

Note

If nil is passed as the ACollection parameter then the current collection element is simply removed from the collection that owns it.

See Also