Vcl.Controls.TControlActionLink.Destroy

From RAD Studio API Documentation
Jump to: navigation, search

C++

/* TBasicActionLink.Destroy */ inline __fastcall virtual ~TControlActionLink() { }

Properties

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

Description

Destroys an instance of an action link object.

You do not need to destroy the action link; it is automatically destroyed by the client that was passed to its constructor when it was created.

If you want to destroy the action link manually, do not call the destructor directly.

Delphi: Call Free instead. Free checks that the link is not nil, and only then invokes the destructor.

C++: Use the delete keyword instead. Delete verifies that the link is not already freed, and only then invokes the destructor.