System::Drawing::RectangleF::Contains method

RectangleF::Contains(const PointF&) method

Determines if the specified point is located within the rectangle represented by the current object.

bool System::Drawing::RectangleF::Contains(const PointF &point)
ParameterTypeDescription
pointconst PointF&A point to check

ReturnValue

True if the specified point is located within the rectangle represented by the current object, otherwise - false

See Also

RectangleF::Contains(const RectangleF&) method

Determines if the specified rectangle is located within the rectangle represented by the current object.

bool System::Drawing::RectangleF::Contains(const RectangleF &rect)
ParameterTypeDescription
rectconst RectangleF&A rectangle to check

ReturnValue

True if the specified rectangle is located within the rectangle represented by the current object, otherwise - false

See Also

RectangleF::Contains(float, float) method

Determines if the specified point is located within the rectangle represented by the current object.

bool System::Drawing::RectangleF::Contains(float x, float y)
ParameterTypeDescription
xfloatThe X coordinate of the point to check
yfloatThe Y coordinate of the point to check

ReturnValue

True if the specified point is located within the rectangle represented by the current object, otherwise - false

See Also