RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComponent.GetOwner Method

Returns the owner of a component.

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

GetOwner is called by GetNamePath to find the owner of a component. GetNamePath and GetOwner are introduced in TPersistent so descendants such as collections can appear in the Object Inspector. For TComponent, GetOwner returns the value of the Owner property. 

 

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