System::Drawing::RectangleF::Contains 方法

RectangleF::Contains(const PointF&) method

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

bool System::Drawing::RectangleF::Contains(const PointF &point)
ParameterType描述
const PointF&要检查的点

ReturnValue

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

另见

RectangleF::Contains(const RectangleF&) method

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

bool System::Drawing::RectangleF::Contains(const RectangleF &rect)
ParameterType描述
rectconst RectangleF&要检查的矩形

ReturnValue

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

另见

RectangleF::Contains(float, float) method

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

bool System::Drawing::RectangleF::Contains(float x, float y)
ParameterType描述
x单精度浮点数要检查的点的 X 坐标
y单精度浮点数要检查的点的 Y 坐标

ReturnValue

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

另见