RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComponentList.Destroy Destructor

Destroys an instance of TComponentList.

Pascal
destructor Destroy; override;
C++
virtual __fastcall ~TComponentList();

Do not call Destroy directly. Instead, call Free, which checks that the component list is not nil before calling Destroy. 

Before destroying the TComponentList, Destroy calls Clear, which frees the components in the list if OwnsObjects is true. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!