---
title: "ICanvasRenderingContext2D.StrokeStyle"
url: "https://reference.aspose.com/html/net/aspose.html.dom.canvas/icanvasrenderingcontext2d/strokestyle/"
product: "Aspose.HTML for .NET API Reference"
description: "ICanvasRenderingContext2D StrokeStyle property. Color or style to use for the lines around shapes. Default black"
---

## ICanvasRenderingContext2D.StrokeStyle property

Color or style to use for the lines around shapes. Default: (black).

```csharp
public object StrokeStyle { get; set; }
```

### See Also

* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)
