Table of Contents

Method SetLocked

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

SetLocked(CadDocument, string, bool)

Locks or unlocks a layer: the objects on a locked layer are drawn but not changed.

public static CadEditResult SetLocked(CadDocument document, string name, bool locked)

Parameters

document CadDocument

The document.

name string

The layer's name.

locked bool

Whether it is to be locked.

Returns

CadEditResult

What came of it.