[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'Classes' (#fcl)

# TComponent.GetChildOwner

Returns the owner of any children.

## Declaration

`protected function TComponent.GetChildOwner: TComponent; dynamic;`

## Description

GetChildOwner returns the owner of the children that are read from the stream. If the method returns Nil (the default) this means that streamed child components are owned by the root component of the streaming process (usually a Form or Datamodule)

Application programmers should not call GetChildOwner directly, it is called by the streaming system when needed.

## See also

TComponent.WriteState |  | Writes the component to a stream.
TComponent.ReadState |  | Read the component's state from a stream.
TComponent.Owner |  | Owner of this component.
TComponent.GetChildParent |  | Returns the parent of any children.