## Contains(int, int) {#contains_2}

确定指定点是否包含在此[`Rectangle`](../)结构.

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

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| x | Int32 | 要测试的点的 x 坐标。 |
| y | Int32 | 要测试的点的 y 坐标。 |

### 返回值

如果由定义的点，则此方法返回 true*x*和*y*包含在这个[`Rectangle`](../)结构;否则为假。

### 也可以看看

* struct [Rectangle](../)
* 命名空间 [Aspose.PSD](../../rectangle/)
* 部件 [Aspose.PSD](../../../)

---

## Contains(Point) {#contains}

确定指定点是否包含在此[`Rectangle`](../)结构.

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

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| point | Point | 这[`Point`](../../point/)去测试。 |

### 返回值

如果由*point*包含在这个[`Rectangle`](../)结构;否则为假。

### 也可以看看

* struct [Point](../../point/)
* struct [Rectangle](../)
* 命名空间 [Aspose.PSD](../../rectangle/)
* 部件 [Aspose.PSD](../../../)

---

## Contains(Rectangle) {#contains_1}

判断所代表的矩形区域是否*rect*完全包含在这个[`Rectangle`](../)结构.

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

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| rect | Rectangle | 这[`Rectangle`](../)去测试。 |

### 返回值

如果矩形区域由*rect*完全包含在这个[`Rectangle`](../)结构;否则为假。

### 也可以看看

* struct [Rectangle](../)
* 命名空间 [Aspose.PSD](../../rectangle/)
* 部件 [Aspose.PSD](../../../)


