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
documentCadDocumentThe document.
namestringThe layer's name.
lockedboolWhether it is to be locked.
Returns
- CadEditResult
What came of it.