
# CMP_Rect class

*No description yet.*

```csharp
public class CMP_Rect : ICMP_Rect
```

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

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

## Constructors

```csharp
public CMP_Rect();
public CMP_Rect(SCMP_Rect argVal);
public CMP_Rect(ICMP_Rect argVal);
```

## Properties

| Property | Type | Access | Description |
| --- | --- | --- | --- |
| [Data](#data) | [SCMP_Rect](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/SCMP_Rect.md) | get; set |  |
| [MaxX](#maxx) | `double` | get; set |  |
| [MaxY](#maxy) | `double` | get; set |  |
| [MinX](#minx) | `double` | get; set |  |
| [MinY](#miny) | `double` | get; set |  |

### Data

*No description yet.*

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

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

### MaxX

*No description yet.*

```csharp
double MaxX { get; set; }
```

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

### MaxY

*No description yet.*

```csharp
double MaxY { get; set; }
```

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

### MinX

*No description yet.*

```csharp
double MinX { get; set; }
```

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

### MinY

*No description yet.*

```csharp
double MinY { get; set; }
```

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

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [GetMaxX](#getmaxx) | `double` |  |
| [GetMaxY](#getmaxy) | `double` |  |
| [GetMinX](#getminx) | `double` |  |
| [GetMinY](#getminy) | `double` |  |

### GetMaxX

*No description yet.*

```csharp
double GetMaxX();
```

**Returns:** `double`

### GetMaxY

*No description yet.*

```csharp
double GetMaxY();
```

**Returns:** `double`

### GetMinX

*No description yet.*

```csharp
double GetMinX();
```

**Returns:** `double`

### GetMinY

*No description yet.*

```csharp
double GetMinY();
```

**Returns:** `double`

## Returned by

[ICMP_Geometry.GetBoundingRect](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/ICMP_Geometry.md#getboundingrect), [ICMP_Primitive.GetBoundingRect](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/ICMP_Primitive.md#getboundingrect)
