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

# TComponent.Destroying

Called when the component is being destroyed

## Declaration

`public procedure TComponent.Destroying;`

## Description

Destroying sets the csDestroying flag in the component's state property, and does the same for all owned components.

It is not necessary to call Destroying directly, the destructor Destroy does this automatically.

## See also

TComponent.State
TComponent.Destroy |  | Destroys the instance of the component.