TImageEnVect.LayersRemove
Declaration
procedure LayersRemove(idx: integer; SwapBackgroundProps: Boolean = False);
Description
Removes the specified layer and any objects that it contains. At least one layer must be present.
Parameter | Description |
idx | Index of the layer to remove (0 = background/first layer) |
SwapBackgroundProps | If the background layer (Layer 0), the new background will inherit the Locked and Selectable properties of the old one |
Example
// Delete the selected layer and all its objects
ImageEnVect1.LayersRemove(ImageEnVect1.LayersCurrent);
ImageEnVect1.Update;