---
title: "Device-2.AddRect"
url: "https://reference.aspose.com/svg/net/aspose.svg.rendering/device-2/addrect/"
product: "Aspose.SVG for .NET API Reference"
description: "Device AddRect method. Appends a rectangle to the current path as a complete subpath"
---

## Device<TGraphicContext,TRenderingOptions>.AddRect method

Appends a rectangle to the current path as a complete subpath.

```csharp
public virtual void AddRect(RectangleF rect)
```

| Parameter | Type | Description |
| --- | --- | --- |
| rect | RectangleF | A rectangle to draw. |

### See Also

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