System::Drawing::Rectangle::IntersectsWith method

Rectangle::IntersectsWith method

Determines if the rectangles represented by the current and specified objects intesect.

bool System::Drawing::Rectangle::IntersectsWith(const Rectangle &rect)
ParameterTypeDescription
rectconst Rectangle&The rectangle to check

ReturnValue

True if the rectangles represented by the current object and rect intersect, otherwise - false

See Also