RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TControl.GetParentComponent Method

Returns the parent of the control.

Pascal
function GetParentComponent: TComponent; override;
C++
virtual __fastcall TComponent * GetParentComponent();

GetParentComponent is called by the streaming system that loads and saves VCL components. The component returned by GetParentComponent is responsible for loading and saving the control when it is streamed in or out. As implemented in TControl, GetParentComponent returns the value of the Parent property. 

 

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