TCustomLayer.Destroy

destructor Destroy; override;

Description

Removes the layer from its layer collection, destroys the layer instance, and frees all allocated memory.

Do not call Destroy directly. Instead, use the Free method which verifies that the layer reference is assigned and only than calls Destroy.

See Also

Using Layers, LayerCollection