System.Classes.TComponent.GetChildParent

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function GetChildParent: TComponent; dynamic;

C++

DYNAMIC TComponent* __fastcall GetChildParent(void);

Properties

Type Visibility Source Unit Parent
function protected
System.Classes.pas
System.Classes.hpp
System.Classes TComponent

Description

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 (Object Pascal) or this (C++). If GetChildParent returns nil (Object Pascal) or NULL (C++), the parent is assumed to be the root component currently being read (usually a form).

See Also