Description
Deletes a layer.
It requires that the list of layers is checked out. See LayerListToggleCheck Function.
Syntax
Page.LayerDelete (int1) |
int1
Position of the layer in the layers list, from 0 (the first one in the list of layers, and the first drawn, therefore below all other layers) to GetLayersCount (the last layer in the list, the last drawn, therefore on top of all other layers)
Remarks
Returns an error code.
Examples
See Managing page layers in scripting.
Context
Page designer
All layers related commands
GetCurLayer, GetLayerId, GetLayerLockLevel, GetLayerName, GetLayersCount,GetLayerTypeId, GetLayerUserId, GetLayerUserName
IsLayerChecked, IsLayerFrozen, IsLayerListChecked, IsLayerLocked, IsLayerVisible
LayerAdd, LayerDelete, LayerEditDlg, LayerJumpTo, LayerListToggleCheck, LayerMerge, LayerNoJumpTo, LayerRecover, LayersCopyContent, LayerSelect, LayerSelectIdName, LayerTest, LayerToBack, LayerToFront, LayerToggleCheck, LayerToggleFreeze, LayerToggleLock, LayerToggleVisible