Vcl.Controls.TDragControlObject.Destroy

From RAD Studio API Documentation
Jump to: navigation, search

C++

/* TObject.Destroy */ inline __fastcall virtual ~TDragControlObject() { }

Properties

Type Visibility Source Unit Parent
destructor public Vcl.Controls.hpp Vcl.Controls TDragControlObject

Description

Frees the memory associated with the TDragControlObject object.

Delphi: Do not call Destroy directly. The controls that use a TControlCanvas object destroy it by calling Free from their own destructors. Free verifies that the TDragControlObject object is not nil and only then calls Destroy.

C++: Do not call ~TDragControlObject directly. Instead, use the delete keyword on the object, which causes ~TDragControlObject to be invoked automatically.