[]
Represents a set of attributes used to draw lines. This class is immutable.
[TypeConverter(typeof(LineDef.TypeConverter))]
public class LineDef
Name | Description |
---|---|
LineDef() | Initializes a new instance of the LineDef class with default values (1pt wide black line). |
LineDef(Unit, Color) | Initializes a new instance of the LineDef class, assigning line width and color. |
LineDef(Unit, Color, Color, DashStyle) | Initializes a new instance of the LineDef class, assigning line width, color, dash background color and dash style. |
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. |
LineDef(Unit, Color, DashStyle) | Initializes a new instance of the LineDef class, assigning line width, color and dash style. |
LineDef(Unit, Color, float[]) | Initializes a new instance of the LineDef class, assigning line width, color and dash pattern. DashStyle is set to Custom. |
LineDef(Color) | Initializes a new instance of the LineDef class, assigning line color. |
Name | Description |
---|---|
BackColor | Gets the the background color of spaces between the dashes of a dashed line. Not used if DashStyle is Solid. |
Color | Gets the line color. |
DashPattern | Gets an array of custom dashes and spaces. |
DashStyle | |
Default | Represents the default regular line (solid black, 1pt wide). |
DefaultBold | Represents the default bold line (solid black, 2pt wide). |
Empty | Represents an empty line (with emtpy color and zero width). |
Width | Gets the line width (thickness). |
Name | Description |
---|---|
Equals(object) | Determines whether the specified LineDef object is equal to the current object. This method compares the property values on the objects. |
GetHashCode() | Serves as a hash function for the LineDef type. |
IsSameStyle(LineDef) | 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. |
Parse(string, bool) | Creates a LineDef object, and initialises it with values acquired by parsing a string representation of a LineDef. |
Parse(string, bool, ITypeDescriptorContext) | For internal use only. |
ToString() | Returns a string that represents the current object. |