---
title: "Pen.CustomEndCap"
url: "https://reference.aspose.com/psd/net/aspose.psd/pen/customendcap/"
product: "Aspose.PSD for .NET API Reference"
description: "Pen property. Gets or sets a custom cap to use at the end of lines drawn with this Pen"
---

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

Gets or sets a custom cap to use at the end of lines drawn with this [`Pen`](../).

```csharp
public CustomLineCap CustomEndCap { get; set; }
```

### Property Value

A [`CustomLineCap`](../../customlinecap/) that represents the cap used at the end of lines drawn with this [`Pen`](../).

### Exceptions

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

### See Also

* class [CustomLineCap](../../customlinecap/)
* class [Pen](../)
* namespace [Aspose.PSD](../../../aspose.psd/)
* assembly [Aspose.PSD](../../../)


