Rectangle.Contains
Contains(int, int)
确定指定的点是否包含在此Rectangle结构中。
public bool Contains(int x, int y)
| 参数 | 类型 | 描述 |
|---|---|---|
| x | Int32 | 要测试的点的 x 坐标。 |
| y | Int32 | 要测试的点的 y 坐标。 |
返回值
如果由 x 和 y 定义的点包含在此Rectangle结构中,则此方法返回 true;否则返回 false。
另请参见
- struct Rectangle
- namespace Aspose.Imaging
- assembly Aspose.Imaging
Contains(Point)
确定指定的点是否包含在此Rectangle结构中。
public bool Contains(Point point)
| 参数 | 类型 | 描述 |
|---|---|---|
| point | Point | 要测试的Point。 |
返回值
如果由 point 表示的点包含在此Rectangle结构中,则此方法返回 true;否则返回 false。
另请参见
- struct Point
- struct Rectangle
- namespace Aspose.Imaging
- assembly Aspose.Imaging
Contains(Rectangle)
确定由 rect 表示的矩形区域是否完全包含在此Rectangle结构中。
public bool Contains(Rectangle rect)
| 参数 | 类型 | 描述 |
|---|---|---|
| rect | Rectangle | 要测试的Rectangle。 |
返回值
如果由 rect 表示的矩形区域完全包含在此Rectangle结构中,则此方法返回 true;否则返回 false。
另请参见
- struct Rectangle
- namespace Aspose.Imaging
- assembly Aspose.Imaging