RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebActionItems.GetOwner Method

Returns the owner of an object.

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

GetOwner is used by the GetNamePath method to find the owner of a persistent object. GetNamePath and GetOwner are introduced in TPersistent so descendants such as collections can appear in the Object Inspector. As implemented in TPersistent, GetOwner returns nil (Delphi) or NULL (C++).  

For TCollection, GetOwner returns the owner of the collection. For collection items, it returns the collection object into which the collection item has been inserted. For TComponent it is the value of the Owner property. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!