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

# TComponent.SetAncestor

Sets the csAncestor state of the component.

## Declaration

`protected procedure TComponent.SetAncestor(`
`Value: Boolean`
`);`

## Description

SetAncestor includes or excludes the csAncestor flag in the ComponentState set property, depending on the boolean Value. The flag is set recursively for all owned components as well.

This is normally only done during the streaming system, and should not be called directly by an application programmer.

## See also

TComponent.ComponentState |  | Current component's state.