DXFReaderNETControlAddLayer Method
|
Adds a new layer to the drawing.
Namespace:
DXFReaderNET
Assembly:
DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax public Layer AddLayer(
string LayerName,
short AciColor = 7
)
Public Function AddLayer (
LayerName As String,
Optional AciColor As Short = 7
) As Layer
public:
Layer^ AddLayer(
String^ LayerName,
short AciColor = 7
)
member AddLayer :
LayerName : string *
?AciColor : int16
(* Defaults:
let _AciColor = defaultArg AciColor 7
*)
-> Layer
METHOD AddLayer(
LayerName AS STRING,
AciColor AS SHORT := 7
) AS Layer
Parameters
- LayerName
- Type: SystemString
The name of the new layer - AciColor (Optional)
- Type: SystemInt16
A number for 1 to 256 corresponding to the AutoCAD Color Index (Default value = 7).
Return Value
Type:
LayerThe new added
Layer.
Remarks If layer already exists
error 301 is raised.
See Also