System.Classes.TComponent.Destroying

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Destroying;

C++

void __fastcall Destroying(void);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TComponent

Description

Indicates that the component and its owned components are about to be destroyed.

Destroying sets the csDestroying flag in the ComponentState property. It then calls the Destroying method for each owned component so that its csDestroying flag is also set. If csDestroying is already set, Destroying does nothing.

It is not necessary to call Destroying directly. Destroying is automatically called when the component is destroyed.

See Also