## Rectangle::Contains(const Point\&) const method


确定指定的点是否位于当前对象表示的矩形内部。

```cpp
bool System::Drawing::Rectangle::Contains(const Point &point) const
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 点 | const Point\& | 要检查的点 |

### ReturnValue

如果指定的点位于当前对象所表示的矩形内部，则为 true；否则为 false

## 另见

* Class [Point](../../point/)
* Class [Rectangle](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## Rectangle::Contains(const Rectangle\&) const method


确定指定的矩形是否位于当前对象表示的矩形内部。

```cpp
bool System::Drawing::Rectangle::Contains(const Rectangle &rect) const
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| rect | const Rectangle\& | 要检查的矩形 |

### ReturnValue

如果指定的矩形位于当前对象所表示的矩形内部，则为 true；否则为 false

## 另见

* Class [Rectangle](../)
* Class [Rectangle](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## Rectangle::Contains(int, int) const method


确定指定的点是否位于当前对象表示的矩形内部。

```cpp
bool System::Drawing::Rectangle::Contains(int x, int y) const
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| x | int | 要检查的点的 X 坐标 |
| y | int | 要检查的点的 Y 坐标 |

### ReturnValue

如果指定的点位于当前对象所表示的矩形内部，则为 true；否则为 false

## 另见

* Class [Rectangle](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
