# DashStyle class

Namespace: [Eto.Drawing](https://eto.picoe.ca/api/namespace/eto.drawing.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public sealed class DashStyle : IEquatable<DashStyle>
```

Dash style for a [Pen](https://eto.picoe.ca/api/type/eto.drawing.pen.md)

## Constructors

- [DashStyle](https://eto.picoe.ca/api/type/eto.drawing.dashstyle/ctor.md): (2 overloads) Initializes a new instance of the [DashStyle](https://eto.picoe.ca/api/type/eto.drawing.dashstyle.md) class.

## Properties

- [Dashes](https://eto.picoe.ca/api/type/eto.drawing.dashstyle/dashes.md): Gets the dashes and gaps for this style
- [IsSolid](https://eto.picoe.ca/api/type/eto.drawing.dashstyle/issolid.md): Gets a value indicating whether this dash style is solid
- [Offset](https://eto.picoe.ca/api/type/eto.drawing.dashstyle/offset.md): Gets the offset of the first dash

## Methods

- [Equals](https://eto.picoe.ca/api/type/eto.drawing.dashstyle/equals.md): (2 overloads) Determines whether the specified [DashStyle](https://eto.picoe.ca/api/type/eto.drawing.dashstyle.md) is equal to the current [DashStyle](https://eto.picoe.ca/api/type/eto.drawing.dashstyle.md).
- [GetHashCode](https://eto.picoe.ca/api/type/eto.drawing.dashstyle/gethashcode.md): Serves as a hash function for a [DashStyle](https://eto.picoe.ca/api/type/eto.drawing.dashstyle.md) object.
- [Parse](https://eto.picoe.ca/api/type/eto.drawing.dashstyle/parse.md): (static) 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 [DashStyle.Dashes](https://eto.picoe.ca/api/type/eto.drawing.dashstyle/dashes.md)).
- [ToString](https://eto.picoe.ca/api/type/eto.drawing.dashstyle/tostring.md): Returns a [string](https://learn.microsoft.com/dotnet/api/system.string) that represents the current [DashStyle](https://eto.picoe.ca/api/type/eto.drawing.dashstyle.md).
- [TryParse](https://eto.picoe.ca/api/type/eto.drawing.dashstyle/tryparse.md): (static) 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 [DashStyle.Dashes](https://eto.picoe.ca/api/type/eto.drawing.dashstyle/dashes.md))

## Operators

- [operator ==](https://eto.picoe.ca/api/type/eto.drawing.dashstyle/op-equality.md): (static) Compares two DashStyle objects for equality
- [operator !=](https://eto.picoe.ca/api/type/eto.drawing.dashstyle/op-inequality.md): (static) Compares two DashStyle objects for inequality

## See Also

- [Pen.DashStyle](https://eto.picoe.ca/api/type/eto.drawing.pen/dashstyle.md)
