[]
        
(Showing Draft Content)

C1.C1Preview.LineDef.-ctor

LineDef Constructor

LineDef()

Initializes a new instance of the LineDef class with default values (1pt wide black line).

Declaration
public LineDef()
Public Sub New()

LineDef(Color)

Initializes a new instance of the LineDef class, assigning line color.

Declaration
public LineDef(Color color)
Public Sub New(color As Color)
Parameters
Type Name Description
Color color

A value assigned to the Color property.

LineDef(Unit, Color)

Initializes a new instance of the LineDef class, assigning line width and color.

Declaration
public LineDef(Unit width, Color color)
Public Sub New(width As Unit, color As Color)
Parameters
Type Name Description
Unit width

A value assigned to the Color property.

Color color

A value assigned to the Color property.

LineDef(Unit, Color, DashStyle)

Initializes a new instance of the LineDef class, assigning line width, color and dash style.

Declaration
public LineDef(Unit width, Color color, DashStyle style)
Public Sub New(width As Unit, color As Color, style As DashStyle)
Parameters
Type Name Description
Unit width

A value assigned to the Color property.

Color color

A value assigned to the Color property.

DashStyle style

A value assigned to the DashStyle property.

LineDef(Unit, Color, float[])

Initializes a new instance of the LineDef class, assigning line width, color and dash pattern. DashStyle is set to Custom.

Declaration
public LineDef(Unit width, Color color, float[] dashPattern)
Public Sub New(width As Unit, color As Color, dashPattern As Single())
Parameters
Type Name Description
Unit width

A value assigned to the Color property.

Color color

A value assigned to the Color property.

float[] dashPattern

A value assigned to the DashPattern property.

LineDef(Unit, Color, Color, DashStyle)

Initializes a new instance of the LineDef class, assigning line width, color, dash background color and dash style.

Declaration
public LineDef(Unit width, Color color, Color backColor, DashStyle style)
Public Sub New(width As Unit, color As Color, backColor As Color, style As DashStyle)
Parameters
Type Name Description
Unit width

A value assigned to the Color property.

Color color

A value assigned to the Color property.

Color backColor

A value assigned to the BackColor property.

DashStyle style

A value assigned to the DashStyle property.

LineDef(Unit, Color, Color, float[])

Initializes a new instance of the LineDef class, assigning line width, color, dash background color and dash pattern. DashStyle is set to Custom.

Declaration
public LineDef(Unit width, Color color, Color backColor, float[] dashPattern)
Public Sub New(width As Unit, color As Color, backColor As Color, dashPattern As Single())
Parameters
Type Name Description
Unit width

A value assigned to the Color property.

Color color

A value assigned to the Color property.

Color backColor

A value assigned to the BackColor property.

float[] dashPattern

A value assigned to the DashPattern property.