# ReportViewer.Rect

## Content

# Class: Rect

[ReportViewer](../modules/ReportViewer).Rect

Represents a rectangle in page coordinates.

**`example`**
```ts
const rect = new Rect(0, 0, 200, 100);
```

## Table of contents

### Constructors

- [constructor](ReportViewer.Rect#constructor)

### Properties

- [height](ReportViewer.Rect#height)
- [left](ReportViewer.Rect#left)
- [top](ReportViewer.Rect#top)
- [width](ReportViewer.Rect#width)

## Constructors

### <a id="constructor" name="constructor"></a> constructor

• **new Rect**(`left`, `top`, `width`, `height`)

Initializes a new instance of the [Rect](ReportViewer.Rect) class.

**`example`**
```ts
const rect = new Rect(10, 20, 300, 120);
```

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `left` | `number` | The left coordinate. |
| `top` | `number` | The top coordinate. |
| `width` | `number` | The rectangle width. |
| `height` | `number` | The rectangle height. |

## Properties

### <a id="height" name="height"></a> height

• **height**: `number`

Gets or sets the height of the rectangle.

___

### <a id="left" name="left"></a> left

• **left**: `number`

Gets or sets the left coordinate of the rectangle.

___

### <a id="top" name="top"></a> top

• **top**: `number`

Gets or sets the top coordinate of the rectangle.

___

### <a id="width" name="width"></a> width

• **width**: `number`

Gets or sets the width of the rectangle.
