[]
        
(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()

LineDef(Color)

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

Declaration
public LineDef(Color 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)
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)
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)
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)
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)
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.