Instantiates a new layer.
Namespace:
ceometric.VectorGeometryAssembly: ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.8.0.0 (1.8.0.0)
Syntax
C# |
---|
public Layer( string name, byte color ) |
Visual Basic (Declaration) |
---|
Public Sub New ( _ name As String, _ color As Byte _ ) |
Visual C++ |
---|
public: Layer( String^ name, unsigned char color ) |
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
Remarks
The default line type is 'CONTINUOUS'.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentException | The color value of the layer is not between 1 and 255. |