System.Classes.TComponent.GetChildOwner

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetChildOwner: TComponent; dynamic;

C++

DYNAMIC TComponent* __fastcall GetChildOwner();

Properties

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

Description

Returns the owner of a child component being read from a stream.

GetChildOwner is used internally by the component streaming system. It is rarely necessary to call it directly.

In TComponent, GetChildOwner always returns nil (Delphi) or NULL (C++), indicating that the owner is the root component currently being read (usually a form or data module). The Owner of a component is responsible for destroying it.

See Also