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

# TComponent.GetChildParent

Returns the parent of any children.

## Declaration

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

## Description

GetChildParent returns the parent component of the child components being streamed. The parent property is a visual property, which is not always meaningful. If there is no parent component, the owner of child components that are streamed is returned. If Nil is returned, then the root component of the streaming operation is assumed. The TComponent implementation of this method returns Self.

Application programmers should not call this method, it is called automatically by the streaming mechanism.

## See also

TComponent.GetChildOwner |  | Returns the owner of any children.