Description
Merges the layer specified by int1, with the current layer (i.e. selected in the Layers panel).
Merge means that all objects of the specified layer are moved to the current layer, and the specified layer is deleted. It requires that the list of layers is checked out (for that, see LayerListToggleCheck Function).
Syntax
Page.LayerMerge (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