---
title: "Pen.DashStyle"
url: "https://reference.aspose.com/psd/net/aspose.psd/pen/dashstyle/"
product: "Aspose.PSD for .NET API Reference"
description: "Pen property. Gets or sets the style used for dashed lines drawn with this Pen"
---

{{< psd/tize >}}
## 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.PSD](../../../aspose.psd/)
* assembly [Aspose.PSD](../../../)


