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 of 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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!