---
title: "Pen.DashCap"
url: "https://reference.aspose.com/psd/net/aspose.psd/pen/dashcap/"
product: "Aspose.PSD for .NET API Reference"
description: "Pen property. Gets or sets the cap style used at the end of the dashes that make up dashed lines drawn with this Pen"
---

{{< psd/tize >}}
## Pen.DashCap property

Gets or sets the cap style used at the end of the dashes that make up dashed lines drawn with this [`Pen`](../).

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

### Property Value

One of the `DashCap` values that represents the cap style used at the beginning and end of the dashes that make up dashed lines drawn with this [`Pen`](../).

### Exceptions

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

### See Also

* enum [DashCap](../../dashcap/)
* class [Pen](../)
* namespace [Aspose.PSD](../../../aspose.psd/)
* assembly [Aspose.PSD](../../../)


