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

# TStream.WriteDescendentRes

Write resource header and component data to a stream, relative to an ancestor

## Declaration

`public procedure TStream.WriteDescendentRes(`
`const ResName: String;`
`Instance: TComponent;`
`Ancestor: TComponent`
`);`

## Description

WriteDescendentRes writes a ResName resource header, and then calls WriteDescendent to write the state of Instance to the stream where it differs from Ancestor, i.e. only the changed properties are written to the stream.

This method is intened for use by an IDE that can use it to store forms or datamodules as designed in a Windows resource stream.