See Also: Pen.DashStyle
Constructors
Properties
Dashes
#Gets the dashes and gaps for this style
Remarks: The values specified are the dash lengths and gap lengths in alternating order. The lengths are multiplied by the thickness of the pen. For example, values of 2, 1 would have a dash of (2 * thickness) followed by a gap of (1 * thickness).
Value: The dashes to use for a pen
IsSolid
#Gets a value indicating whether this dash style is solid
Value:
true if this instance is solid; otherwise, false.Offset
#Gets the offset of the first dash
Remarks: A value of 1 indicates that the first dash should start at the (1*thickness) of the pen.
Value: The offset of the first dash, in multiples of pen thickness
Methods
Equals
#Equals
#Overrides: Object.Equals
GetHashCode
#Serves as a hash function for a DashStyle object.
Returns: A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table.
Overrides: Object.GetHashCode
Parse
#Attempts to parse the specified
value into a dash style. This can be one of the system styles (solid, dash, dot, dashdot, dashdotdot), or a series of numbers separated by commas specifying the solid and gap parts (see Dashes).Parameters:
| value (string) | String value to parse |
Returns: DashStyle representation of the specified value if successful
Exceptions:
| ArgumentOutOfRangeException | Raised when the value could not be converted |
TryParse
#Attempts to parse the specified
value into a dash style. This can be one of the system styles (solid, dash, dot, dashdot, dashdotdot), or a series of numbers separated by commas specifying the solid and gap parts (see Dashes)