RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComponent.DestroyComponents Method

Destroys all owned components.

Pascal
procedure DestroyComponents;
C++
__fastcall DestroyComponents();

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!