Rectangle.IntersectsWith

Rectangle.IntersectsWith method

Determines if this rectangle intersects with rect.

public bool IntersectsWith(Rectangle rect)
ParameterTypeDescription
rectRectangleThe rectangle to test.

Return Value

This method returns true if there is any intersection, otherwise false.

See Also