Layer(String, Color, String, Single, Boolean, Boolean) Constructor

Name, color, linetype name, line weight, status and locked constructor.
Public Sub New( _ 
ByVal name As String, _ 
ByVal color As Color, _ 
ByVal lineTypeName As String, _ 
ByVal lineWeight As Single, _ 
ByVal visible As Boolean, _ 
Optional ByVal locked As Boolean = false _ 
)
This language is not supported or no code example is available.
public Layer( 
string name
Color color
string lineTypeName
float lineWeight
bool visible
bool locked = false 
)
This language is not supported or no code example is available.

Parameters

name
string

Layer name

color
Color

Layer color

lineTypeName
string

Line type name

lineWeight
float

Line weight

visible
bool

Layer status (On/Off)

locked
bool

Layer locked status (if true, the entities on the layer can't be selected)

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition