LayerSelect Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:15

Description

Selects a layer as the current one.

See also LayerSelectIdName Method.

Syntax

Page.LayerSelect (LayerN)

LayerN

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

CanLayerRecover

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

TxtLayersDlg