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


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

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 点 | const PointF\& | 要检查的点 |

### ReturnValue

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

## 另见

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


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

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| rect | const RectangleF\& | 要检查的矩形 |

### ReturnValue

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

## 另见

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


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

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| x | float | 要检查的点的 X 坐标 |
| y | float | 要检查的点的 Y 坐标 |

### ReturnValue

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

## 另见

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