IntersectsWith()

Rectangle::IntersectsWith(const Rectangle&) method

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

bool System::Drawing::Rectangle::IntersectsWith(const Rectangle &rect)

Arguments

ParameterTypeDescription
rectconst Rectangle&The rectangle to check

Return Value

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

See Also