Layer
Contents
[
Hide
]Layer class
Contains elements that define a single layer and its properties for a page.
Layer()
Constructor.
Properties
| Name | Type | Description |
|---|---|---|
| IX | int | The zero-based index of the element within its parent element. |
| Del | int | A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted loca |
| Name | Str2Value | Name element specifies the name of a layer. |
| Color | ColorValue | The index of the color in the color table used toThe index of the color in the color table used to display the layer or |
| IsColorChecked | int | A flag indicating whether the element has been checked locally. A value of 1 indicates that the element was checked loca |
| Status | BoolValue | Specifies whether the layer is a valid layer for a document. |
| Visible | BoolValue | Specifies whether shapes belonging to the layer are visible on the drawing page. |
| BoolValue | Specifies whether shapes belonging to the layer are printed when the drawing is printed. | |
| Active | BoolValue | Specifies whether a layer is active. Shapes that are not preassigned to layers are assigned to the active layer(s) when |
| Lock | BoolValue | Specifies whether shapes belonging to the layer are locked against being selected or edited. |
| Snap | BoolValue | Specifies whether other shapes can snap to shapes assigned to the layer. Shapes assigned to the layer can snap to other |
| Glue | BoolValue | Specifies whether shapes belonging to the layer can be glued to. |
| NameUniv | Str2Value | Specifies the universal name of a layer. |
| ColorTrans | DoubleValue | Determines the degree of transparency for a layer or shape’s text color, from 0 (completely opaque) to 1 (completely tra |