Table of Contents

Method SetOn

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

SetOn(CadDocument, string, bool)

Switches a layer on or off; the current layer may be switched off, as in AutoCAD.

public static CadEditResult SetOn(CadDocument document, string name, bool on)

Parameters

document CadDocument

The document.

name string

The layer's name.

on bool

Whether it is to be on.

Returns

CadEditResult

What came of it.