RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCollectionItem.GetOwner Method

Returns the collection to which this item belongs.

Pascal
function GetOwner: TPersistent; override;
C++
virtual __fastcall TPersistent * GetOwner();

GetOwner is used by the GetNamePath method to find the collection that owns the collection item, allowing the collection item to appear in the Object Inspector. It returns the value of the Collection property.

Note: The Owner of a collection item is not synonymous with a component's Owner. It has no implications about the freeing of objects but merely serves to represent relationships to the Object Inspector.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!