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

# TComponent.GetChildren

Must be overridden by descendents to return all child components that must be streamed.

## Declaration

`protected procedure TComponent.GetChildren(`
`Proc: TGetChildProc;`
`Root: TComponent`
`); dynamic;`

## Description

GetChildren is called by the streaming system to determine which child components should be streamed as well when the component is being streamed. By default, no child components are streamed, i.e. the TComponent implementation is empty.

TComponent descendents should override this method. For each child that needs to be streamed, Proc should be called with as an argument the child component that must be streamed. The Root argument contains the root component relative to which all streaming is done.

## See also

TComponent.WriteState |  | Writes the component to a stream.