Previous Document Next Document

Object Model Reference : Classes : C : CorelScript : Methods : CorelScript.SetLayerLocked


CorelScript.SetLayerLocked

Function SetLayerLocked(Locked As Boolean, LayerName As String, PageNum As Long) As Long

Description

Member of CorelScript

The SetLayerLocked method enables or disables the selection of objects on a layer. Locking a layer prevents its objects from being accidentally moved or changed in any way.

 
You cannot add new objects to a locked layer.

Parameter
Description
Locked
Specifies whether the layer is locked. True (-1) locks the layer, while False (0) unlocks it.
LayerName
Specifies the name of the layer
PageNum
Specifies the page number. For a master page, use a value of 0.

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.