## RectangleF::Contains(const PointF\&) method


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

```cpp
bool System::Drawing::RectangleF::Contains(const PointF &point)
```


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

### ReturnValue

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

## 另见

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


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

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


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

### ReturnValue

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

## 另见

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


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

```cpp
bool System::Drawing::RectangleF::Contains(float x, float y)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| x | 单精度浮点数 | 要检查的点的 X 坐标 |
| y | 单精度浮点数 | 要检查的点的 Y 坐标 |

### ReturnValue

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

## 另见

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