LayerSelectIdName Method

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

Description

Selects a layer by Id or by name.

See also LayerSelect to select layer by ordinal number.

Syntax

Page.LayerSelectIdName (iLayerId, sLayerName)

iLayerId        

Id of target layer. Use GetLayerId to know the id of the layer. If "LayerId" is different from 0 the match is done on it, else the match is done by layer name (case sensitive)

sLayerName        

Name of target layer. Case senstitive. Works only if iLayerId is 0. If needed, use GetLayerName to know it.

Remarks

Returns false if no error, otherwise true.

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