Vcl.ControlList.TCustomControlList.GetChildParent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetChildParent: TComponent; override;

C++

DYNAMIC System::Classes::TComponent* __fastcall GetChildParent();

Properties

Type Visibility Source Unit Parent
function protected
Vcl.ControlList.pas
Vcl.ControlList.hpp
Vcl.ControlList TCustomControlList

Description

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

Vcl.ControlList.TCustomControlList.GetChildParent inherits from System.Classes.TComponent.GetChildParent. All content below this line refers to System.Classes.TComponent.GetChildParent.

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

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).

See Also