System::Drawing::Rectangle::Contains 方法
内容
[
隐藏
]Rectangle::Contains(const Point&) const method
确定指定的点是否位于当前对象所表示的矩形内部。
bool System::Drawing::Rectangle::Contains(const Point &point) const
| 参数 | 类型 | 描述 |
|---|---|---|
| 点 | const Point& | 要检查的点 |
ReturnValue
如果指定的点位于当前对象所表示的矩形内部,则返回 true;否则返回 false
另见
- Class Point
- Class Rectangle
- Namespace System::Drawing
- Library Aspose.Font for C++
Rectangle::Contains(const Rectangle&) const method
确定指定的矩形是否位于当前对象所表示的矩形内部。
bool System::Drawing::Rectangle::Contains(const Rectangle &rect) const
| 参数 | 类型 | 描述 |
|---|---|---|
| rect | const Rectangle& | 要检查的矩形 |
ReturnValue
如果指定的矩形位于当前对象所表示的矩形内部,则返回 true;否则返回 false
另见
- Class Rectangle
- Class Rectangle
- Namespace System::Drawing
- Library Aspose.Font for C++
Rectangle::Contains(int, int) const method
确定指定的点是否位于当前对象所表示的矩形内部。
bool System::Drawing::Rectangle::Contains(int x, int y) const
| 参数 | 类型 | 描述 |
|---|---|---|
| x | int | 要检查的点的 X 坐标 |
| y | int | 要检查的点的 Y 坐标 |
ReturnValue
如果指定的点位于当前对象所表示的矩形内部,则返回 true;否则返回 false
另见
- Class Rectangle
- Namespace System::Drawing
- Library Aspose.Font for C++