{{< psd/tize >}}
## Contains(int, int) {#contains_2}

Determines if the specified point is contained within this [`Rectangle`](../) structure.

```csharp
public bool Contains(int x, int y)
```

| Parameter | Type | Description |
| --- | --- | --- |
| x | Int32 | The x-coordinate of the point to test. |
| y | Int32 | The y-coordinate of the point to test. |

### Return Value

This method returns true if the point defined by *x* and *y* is contained within this [`Rectangle`](../) structure; otherwise false.

### See Also

* struct [Rectangle](../)
* namespace [Aspose.PSD](../../../aspose.psd/)
* assembly [Aspose.PSD](../../../)

---

## Contains(Point) {#contains}

Determines if the specified point is contained within this [`Rectangle`](../) structure.

```csharp
public bool Contains(Point point)
```

| Parameter | Type | Description |
| --- | --- | --- |
| point | Point | The [`Point`](../../point/) to test. |

### Return Value

This method returns true if the point represented by *point* is contained within this [`Rectangle`](../) structure; otherwise false.

### See Also

* struct [Point](../../point/)
* struct [Rectangle](../)
* namespace [Aspose.PSD](../../../aspose.psd/)
* assembly [Aspose.PSD](../../../)

---

## Contains(Rectangle) {#contains_1}

Determines if the rectangular region represented by *rect* is entirely contained within this [`Rectangle`](../) structure.

```csharp
public bool Contains(Rectangle rect)
```

| Parameter | Type | Description |
| --- | --- | --- |
| rect | Rectangle | The [`Rectangle`](../) to test. |

### Return Value

This method returns true if the rectangular region represented by *rect* is entirely contained within this [`Rectangle`](../) structure; otherwise false.

### See Also

* struct [Rectangle](../)
* namespace [Aspose.PSD](../../../aspose.psd/)
* assembly [Aspose.PSD](../../../)


