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

# TStream.WriteDescendent

Write component data to a stream, relative to an ancestor

## Declaration

`public procedure TStream.WriteDescendent(`
`Instance: TComponent;`
`Ancestor: TComponent`
`);`

## Description

WriteDescendent writes the state of Instance to the stream where it differs from Ancestor, i.e. only the changed properties are written to the stream.

WriteDescendent creates a TWriter object and calls its WriteDescendent object. The writer is passed a binary driver object by default.