Layer

Layer class

Contains elements that define a single layer and its properties for a page.

Layer()

Constructor.

Properties

NameTypeDescription
IXintThe zero-based index of the element within its parent element.
DelintA flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted loca
NameStr2ValueName element specifies the name of a layer.
ColorColorValueThe index of the color in the color table used toThe index of the color in the color table used to display the layer or
IsColorCheckedintA flag indicating whether the element has been checked locally. A value of 1 indicates that the element was checked loca
StatusBoolValueSpecifies whether the layer is a valid layer for a document.
VisibleBoolValueSpecifies whether shapes belonging to the layer are visible on the drawing page.
PrintBoolValueSpecifies whether shapes belonging to the layer are printed when the drawing is printed.
ActiveBoolValueSpecifies whether a layer is active. Shapes that are not preassigned to layers are assigned to the active layer(s) when
LockBoolValueSpecifies whether shapes belonging to the layer are locked against being selected or edited.
SnapBoolValueSpecifies whether other shapes can snap to shapes assigned to the layer. Shapes assigned to the layer can snap to other
GlueBoolValueSpecifies whether shapes belonging to the layer can be glued to.
NameUnivStr2ValueSpecifies the universal name of a layer.
ColorTransDoubleValueDetermines the degree of transparency for a layer or shape’s text color, from 0 (completely opaque) to 1 (completely tra