---
title: "SVGRect Class"
url: "https://reference.aspose.com/html/net/aspose.html.dom.svg.datatypes/svgrect/"
product: "Aspose.HTML for .NET API Reference"
description: "Aspose.Html.Dom.Svg.DataTypes.SVGRect class. Represents rectangular geometry. Rectangles are defined as consisting of a xy coordinate pair identifying a minimum X value a minimum Y value and a width and height which are usually constrained to be non-negative"
---

## SVGRect class

Represents rectangular geometry. Rectangles are defined as consisting of a (x,y) coordinate pair identifying a minimum X value, a minimum Y value, and a width and height, which are usually constrained to be non-negative.

```csharp
public class SVGRect : SVGValueType
```

## Properties

| Name | Description |
| --- | --- |
| [Height](../../aspose.html.dom.svg.datatypes/svgrect/height/) { get; set; } | The Height coordinate of the rectangle, in user units. |
| [Width](../../aspose.html.dom.svg.datatypes/svgrect/width/) { get; set; } | The Width coordinate of the rectangle, in user units. |
| [X](../../aspose.html.dom.svg.datatypes/svgrect/x/) { get; set; } | The X coordinate of the rectangle, in user units. |
| [Y](../../aspose.html.dom.svg.datatypes/svgrect/y/) { get; set; } | The Y coordinate of the rectangle, in user units. |

## Methods

| Name | Description |
| --- | --- |
| [Dispose](../../aspose.html.dom.svg.datatypes/svgvaluetype/dispose/)() | Releases unmanaged and - optionally - managed resources. |
| virtual [GetPlatformType](../../aspose.html.dom/domobject/getplatformtype/)() | This method is used to retrieve the ECMAScript object Type. |
| override [ToString](../../aspose.html.dom.svg.datatypes/svgrect/tostring/)() | Returns a String that represents this instance. |

### See Also

* class [SVGValueType](../svgvaluetype/)
* namespace [Aspose.Html.Dom.Svg.DataTypes](../../aspose.html.dom.svg.datatypes/)
* assembly [Aspose.HTML](../../)
