RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListBox.Destroy Destructor

Destroys the instance of a list box control.

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

Do not call Destroy directly in an application. Instead, an application should call Free. Free checks that the list box reference is not nil before it calls Destroy. 

Destroy frees the memory associated with the objects for the Canvas and Items properties. Then it calls the inherited destructor to destroy the list box object. 

 

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