# Rect

The `Rect` class represents a rectangle in 2D space. It contains four integer values that specify the top, left, right, and bottom edges of the rectangle.

## Definition

*Namespace:* Dynamsoft.Core


```csharp
public class Rect 
```

## Attributes

| Attribute | Type |
|---------- | ---- |
| [`top`](#top) | *int* |
| [`left`](#left) | *int* |
| [`right`](#right) | *int* |
| [`bottom`](#bottom) | *int* |
| [`id`](#id) | *int* |

### top

The top edge of the rectangle.

```csharp
int top
```

### left

The left edge of the rectangle.

```csharp
int left
```

### right

The right edge of the rectangle.

```csharp
int right
```

### bottom

The bottom edge of the rectangle.

```csharp
int bottom
```

### id

The id of the rectangle.

```csharp
int id
```
