
# Rect class

*No description yet.*

```csharp
public class Rect : IRect
```

**Namespace:** DXP · **Assembly:** Altium.SDK.Interfaces

**Implements:** [IRect](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IRect.md)

## Constructors

```csharp
public Rect();
public Rect(SRect argVal);
public Rect(IRect argVal);
```

## Properties

| Property | Type | Access | Description |
| --- | --- | --- | --- |
| [Bottom](#bottom) | `int` | get; set |  |
| [BottomRight](#bottomright) | [SPoint](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/SPoint.md) | get; set |  |
| [Data](#data) | [SRect](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/SRect.md) | get; set |  |
| [Left](#left) | `int` | get; set |  |
| [Right](#right) | `int` | get; set |  |
| [Top](#top) | `int` | get; set |  |
| [TopLeft](#topleft) | [SPoint](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/SPoint.md) | get; set |  |

### Bottom

*No description yet.*

```csharp
int Bottom { get; set; }
```

**Type:** `int` · **Access:** read/write

### BottomRight

*No description yet.*

```csharp
SPoint BottomRight { get; set; }
```

**Type:** [SPoint](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/SPoint.md) · **Access:** read/write

### Data

*No description yet.*

```csharp
SRect Data { get; set; }
```

**Type:** [SRect](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/SRect.md) · **Access:** read/write

### Left

*No description yet.*

```csharp
int Left { get; set; }
```

**Type:** `int` · **Access:** read/write

### Right

*No description yet.*

```csharp
int Right { get; set; }
```

**Type:** `int` · **Access:** read/write

### Top

*No description yet.*

```csharp
int Top { get; set; }
```

**Type:** `int` · **Access:** read/write

### TopLeft

*No description yet.*

```csharp
SPoint TopLeft { get; set; }
```

**Type:** [SPoint](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/SPoint.md) · **Access:** read/write

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [GetBottom](#getbottom) | `int` |  |
| [GetBottomRight](#getbottomright) | [IPoint](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IPoint.md) |  |
| [GetLeft](#getleft) | `int` |  |
| [GetRight](#getright) | `int` |  |
| [GetTop](#gettop) | `int` |  |
| [GetTopLeft](#gettopleft) | [IPoint](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IPoint.md) |  |

### GetBottom

*No description yet.*

```csharp
int GetBottom();
```

**Returns:** `int`

### GetBottomRight

*No description yet.*

```csharp
IPoint GetBottomRight();
```

**Returns:** [IPoint](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IPoint.md)

### GetLeft

*No description yet.*

```csharp
int GetLeft();
```

**Returns:** `int`

### GetRight

*No description yet.*

```csharp
int GetRight();
```

**Returns:** `int`

### GetTop

*No description yet.*

```csharp
int GetTop();
```

**Returns:** `int`

### GetTopLeft

*No description yet.*

```csharp
IPoint GetTopLeft();
```

**Returns:** [IPoint](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IPoint.md)

## Returned by

[IGeneratedPage.GetTileRectangle](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/IGeneratedPage.md#gettilerectangle), [IGeneratedPage.GetViewPort](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/IGeneratedPage.md#getviewport), [ITOCNode.BoundingRectangle](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/ITOCNode.md#boundingrectangle), [ITOCNode.HighlightRectangle](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/ITOCNode.md#highlightrectangle), [IPCB_DocumentPainterView.ClientRect](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_DocumentPainterView.md#clientrect), [IChart.GetClipRect](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IChart.md#getcliprect), [IPainter.ClipRect](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IPainter.md#cliprect), [IPainter.ViewRect](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IPainter.md#viewrect), [IPrimitive.BoundingRect](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IPrimitive.md#boundingrect)

## Accepted by

[IGUIManager.InitTransparentToolbars](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IGUIManager.md#inittransparenttoolbars), [IPreviewImage.DrawLargeImageProportional](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IPreviewImage.md#drawlargeimageproportional), [IHighlightedDocument.HL_Register_Area](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/IHighlightedDocument.md#hl_register_area), [ITOCNode.AddChild](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/ITOCNode.md#addchild), [IPCB_GraphicalView.RenderToDC](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_GraphicalView.md#rendertodc), [IPCB_GraphicalView.RenderToDCTransparent](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_GraphicalView.md#rendertodctransparent), [IPainter.DoFillRect](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IPainter.md#dofillrect), [IPainter.DrawRect](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IPainter.md#drawrect), [IPainter.DrawSelectionButton](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IPainter.md#drawselectionbutton), [IPainter.DrawWaveScrollArrow](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/IPainter.md#drawwavescrollarrow), [ISDFGraphicalView.ZoomToRect](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISDFGraphicalView.md#zoomtorect)
