## Pen.DashStyle property

Gets or sets the style used for dashed lines drawn with this [`Pen`](../).

```csharp
public DashStyle DashStyle { get; set; }
```

### Property Value

A `DashStyle` that represents the style used for dashed lines drawn with this [`Pen`](../).

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentException | The `DashStyle` property is set on an immutable [`Pen`](../), such as those returned by the [`Pen`](../) class. |

### See Also

* enum [DashStyle](../../dashstyle/)
* class [Pen](../)
* namespace [Aspose.Imaging](../../pen/)
* assembly [Aspose.Imaging](../../../)


