Vcl.ImgList.TCustomImageList.Destroy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

destructor Destroy; override;

C++

__fastcall virtual ~TCustomImageList();

Properties

Type Visibility Source Unit Parent
destructor public
Vcl.ImgList.pas
Vcl.ImgList.hpp
Vcl.ImgList TCustomImageList

Description

Destroys the image list and releases the memory allocated to it.

Destroy first calls UnRegisterChanges to unregister any objects registered to receive notification when the image list changed, and frees all helper objects associated with the image list.

Destroy seldom needs to be called. However, when an image list is constructed without an owner by the Create or CreateSize method, call Free to release memory and dispose of the object. Free checks to see if the pointer is nil before calling Destroy.

See Also