Contains()

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)

Arguments

ParameterTypeDescription
xfloatThe X coordinate of the point to check
yfloatThe Y coordinate of the point to check

Return Value

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

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)

Arguments

ParameterTypeDescription
pointconst PointF&A point to check

Return Value

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

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)

Arguments

ParameterTypeDescription
rectconst RectangleF&A rectangle to check

Return Value

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

See Also