---
title: "Pen.SetLineCap"
url: "https://reference.aspose.com/psd/net/aspose.psd/pen/setlinecap/"
product: "Aspose.PSD for .NET API Reference"
description: "Pen method. Sets the values that determine the style of cap used to end lines drawn by this Pen"
---

{{< psd/tize >}}
## Pen.SetLineCap method

Sets the values that determine the style of cap used to end lines drawn by this [`Pen`](../).

```csharp
public void SetLineCap(LineCap startCap, LineCap endCap, DashCap dashCap)
```

| Parameter | Type | Description |
| --- | --- | --- |
| startCap | LineCap | A [`LineCap`](../../linecap/) that represents the cap style to use at the beginning of lines drawn with this [`Pen`](../). |
| endCap | LineCap | A [`LineCap`](../../linecap/) that represents the cap style to use at the end of lines drawn with this [`Pen`](../). |
| dashCap | DashCap | A [`LineCap`](../../linecap/) that represents the cap style to use at the beginning or end of dashed lines drawn with this [`Pen`](../). |

### See Also

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


