Layer

Similar concept to DXF layers. Layers contain Entities, have a default
colour and linestyle and their visibility can be controlled.

Public Fields

Entities
CamBam.CAD.EntityCollection
The list of Entities in this layer.
ModificationCount
System.Int64

Properties

Alpha

System.Single
 

CADFile
readonly

CADFile
The name of the layer that contains this primitive.

Color

System.Drawing.Color
The defaul drawing colour to use for the layer.

Name

System.String
The name of the layer.

Parent

System.Object
The parent object that contains this layer. This may be a CADFile derived object.

PenWidth

System.Single
The pen width to use when painting Entities in this layer.
Penwidth 0 draws a 1 pixel line, regardless of scale.

Tag

System.String
 

Visible

System.Boolean
If True, then this layer and all it's Entities are visible.
If false, then they are hidden.

XmlColor

System.String
Used in serialisation.

Methods

ClearEventHandlers
Void ClearEventHandlers ()
Clone
Object Clone ()
PropertyChanged
Void PropertyChanged (String propertyname, Object newvalue)
PropertyChanging
Void PropertyChanging (String propertyname, Object newvalue)
ToString
String ToString ()
Update
Void Update ()
Instructs the primitive to refresh any internal data if the the object has changed.