The LineDef type exposes the following members.

Constructors

  Name Description
Public method LineDef()()()()
Initializes a new instance of the LineDef class with default values (1pt wide black line).
Public method LineDef(Color)
Initializes a new instance of the LineDef class, assigning line color.
Public method LineDef(Unit, Color)
Initializes a new instance of the LineDef class, assigning line width and color.
Public method LineDef(Unit, Color, DashStyle)
Initializes a new instance of the LineDef class, assigning line width, color and dash style.
Public method LineDef(Unit, Color, array<Single>[]()[][])
Initializes a new instance of the LineDef class, assigning line width, color and dash pattern. DashStyle is set to Custom.
Public method LineDef(Unit, Color, Color, DashStyle)
Initializes a new instance of the LineDef class, assigning line width, color, dash background color and dash style.
Public method LineDef(Unit, Color, Color, array<Single>[]()[][])
Initializes a new instance of the LineDef class, assigning line width, color, dash background color and dash pattern. DashStyle is set to Custom.

Methods

  Name Description
Public method Equals
Determines whether the specified LineDef object is equal to the current object. This method compares the property values on the objects.
(Overrides Object..::..Equals(Object).)
Public method GetHashCode
Serves as a hash function for the LineDef type.
(Overrides Object..::..GetHashCode()()()().)
Public method IsSameStyle
Tests whether the current and another LineDef objects define same line styles - i.e. whether the values of Color, BackColor, DashStyle and DashPattern properties are the same. Note that this method does NOT compare the lines' widths.
Public method Static member Parse(String, Boolean)
Creates a LineDef object, and initialises it with values acquired by parsing a string representation of a LineDef.
Public method Static member Parse(String, Boolean, ITypeDescriptorContext)
For internal use only.
Public method ToString
Returns a string that represents the current object.
(Overrides Object..::..ToString()()()().)

Properties

  Name Description
Public property BackColor
Gets the the background color of spaces between the dashes of a dashed line. Not used if DashStyle is Solid.
Public property Color
Gets the line color.
Public property DashPattern
Gets an array of custom dashes and spaces.
Public property DashStyle
Gets the DashStyle of the current LineDef.
Public property Static member Default
Represents the default regular line (solid black, 1pt wide).
Public property Static member DefaultBold
Represents the default bold line (solid black, 2pt wide).
Public property Static member Empty
Represents an empty line (with emtpy color and zero width).
Public property Width
Gets the line width (thickness).

See Also