System.Classes.TComponent.GetChildOwner

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function GetChildOwner: TComponent; dynamic;

C++

DYNAMIC TComponent* __fastcall GetChildOwner(void);

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 (Object Pascal) 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