System.Classes.TComponent.DestroyComponents

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DestroyComponents;

C++

void __fastcall DestroyComponents(void);

Properties

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

Description

Destroys all owned components.

DestroyComponents iterates through the components owned by the component, removing each from the list of owned components and destroying it.

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

See Also