RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComponent.GetChildParent Method

Returns the parent, or if there is no parent, returns the owner of a child component being read from a stream.

Pascal
function GetChildParent: TComponent; dynamic;
C++
__fastcall TComponent * GetChildParent();

GetChildParent is used internally in the component streaming system. It is not necessary to call it directly. 

As implemented in TComponent, GetChildParent returns Self (Delphi) or this (C++). If GetChildParent returns nil (Delphi) or NULL (C++), the parent is assumed to be the root component currently being read (usually a form). 

 

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