Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxComponentCollectionItem.GetParentComponent Method

Returns the parent component of the current item’s collection.

#Declaration

Delphi
function GetParentComponent: TComponent; override;

#Returns

Type
TComponent

#Remarks

A collection and its items have the same parent component. Use the GetParentComponent function to access the parent component of the current collection item and its collection. If the current item does not belong to any collection, the GetParentComponent function returns nil.

Call the SetParentComponent method to add the current element to a collection associated with a certain component.

See Also