## 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.Imaging](../../pen/)
* assembly [Aspose.Imaging](../../../)


