---
title: "Device-2.StrokeAndFill"
url: "https://reference.aspose.com/svg/net/aspose.svg.rendering/device-2/strokeandfill/"
product: "Aspose.SVG for .NET API Reference"
description: "Device StrokeAndFill method. Strokes and fill current path. This method terminates current path"
---

## Device<TGraphicContext,TRenderingOptions>.StrokeAndFill method

Strokes and fill current path. This method terminates current path.

```csharp
public virtual void StrokeAndFill(FillRule rule)
```

| Parameter | Type | Description |
| --- | --- | --- |
| rule | FillRule | Filling rule specifies how the interior of a closed path is filled. |

### See Also

* enum [FillRule](../../../aspose.svg.drawing/fillrule/)
* class [Device&lt;TGraphicContext,TRenderingOptions&gt;](../)
* namespace [Aspose.Svg.Rendering](../../../aspose.svg.rendering/)
* assembly [Aspose.SVG](../../../)
