API:FMX.Forms.TCommonCustomForm.Destroy
Delphi
destructor Destroy; override;
C++
__fastcall virtual ~TCommonCustomForm();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
destructor | public | FMX.Forms.pas FMX.Forms.hpp |
FMX.Forms | TCommonCustomForm |
Description
Disposes of the component and its owned components.
Disposes of the component and its owned components.
FMX.Forms.TCommonCustomForm.Destroy inherits from System.Classes.TComponent.Destroy. All content below this line refers to System.Classes.TComponent.Destroy.
Disposes of the component and its owned components.
Do not call Destroy directly. Call Free instead. Free verifies that the component is not nil, and only then calls Destroy.
Never explicitly free a component in one of its own event handlers, nor free a component from the event handler of a component that it owns or contains.
To destroy a form, call its Release method. Release waits for all the form's event handlers and the event handlers of the form's components to finish executing before destroying the form.