API:System.Contnrs.TComponentList.Destroy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

destructor Destroy; override;

C++

__fastcall virtual ~TComponentList();

Properties

Type Visibility Source Unit Parent
destructor public
System.Contnrs.pas
System.Contnrs.hpp
System.Contnrs TComponentList

Description

Destroys an instance of TList.

System.Contnrs.TComponentList.Destroy inherits from System.Classes.TList.Destroy. All content below this line refers to System.Classes.TList.Destroy.

Destroys an instance of TList.

Do not call Destroy directly. Instead, call Free. Free verifies that the TList reference is not nil, and only then calls Destroy.

Destroy frees the memory used to store the list of items.

Note: Destroy does not free the memory pointed to by the elements of the list.

See Also