Instantiates a new layer.

Namespace:  ceometric.VectorGeometry
Assembly:  ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.8.0.0 (1.8.0.0)

Syntax

C#
public Layer(
	string name,
	byte color,
	Scene..::.Layer..::.DxfLineType lineType
)
Visual Basic (Declaration)
Public Sub New ( _
	name As String, _
	color As Byte, _
	lineType As Scene..::.Layer..::.DxfLineType _
)
Visual C++
public:
Layer(
	String^ name, 
	unsigned char color, 
	Scene..::.Layer..::.DxfLineType lineType
)

Parameters

name
Type: System..::.String
The name of the layer.
color
Type: System..::.Byte
A color value between [1, 255] defining a layer color.
  • 1: red
  • 2: yellow
  • 3: green
  • 4: cyan
  • 5: blue
  • 6: magenta
  • 7: white
lineType
Type: ceometric.VectorGeometry..::.Scene..::.Layer..::.DxfLineType
The line type of the layer.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionThe color value of the layer is not between 1 and 255.

See Also