Vcl.VirtualImageList.TVirtualImageList.Destroy
Delphi
destructor Destroy; override;
C++
__fastcall virtual ~TVirtualImageList();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
destructor | public | Vcl.VirtualImageList.pas Vcl.VirtualImageList.hpp |
Vcl.VirtualImageList | TVirtualImageList |
Description
Destroys the image list and releases the memory allocated to it.
Vcl.VirtualImageList.TVirtualImageList.Destroy inherits from Vcl.ImgList.TCustomImageList.Destroy. All content below this line refers to Vcl.ImgList.TCustomImageList.Destroy.
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.