Table of Contents

Class CadLayerStateEdit

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

AutoCAD's Edit Layer State of a state: the layers it saved with their properties, those of the drawing not in it, which Add layers puts in, and the properties it restores. Edit(CadLayerStateEdit) writes it into the state as an edit of LAYERSTATE's one undo step; the drawing's layers are left as they are.

public sealed class CadLayerStateEdit
Inheritance
CadLayerStateEdit
Inherited Members

Properties

Layers

Gets the layers of the state, in the order of the Layer manager: by name, letters of either case alike.

Mask

Gets or sets the properties the state restores, as AutoCAD's mask (1 on, 2 frozen, 4 locked, 8 plot, 0x20 colour and on).

Name

Gets the state's name.

Methods

Add(string)

Puts a layer of the drawing into the state with its properties as they stand, as Add layers does.

Differs(CadLayerStateLayer)

Whether a layer of the state differs from the drawing's layer of the name, in a property the state restores; false for one the drawing has not.

LayersNotInState()

Gets the drawing's layers the state does not name, by name, which Add layers offers; a layer of an xref is not one.