RectExtensions.IntersectsWith(Rect, Rect) Method

Definition

Determines if a rectangle intersects with another rectangle.

C#
public static bool IntersectsWith (this Windows.Foundation.Rect rect1, Windows.Foundation.Rect rect2);

Parameters

rect1
Rect

The first rectangle to test.

rect2
Rect

The second rectangle to test.

Returns

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

Applies to

Produit Versions
Windows Community Toolkit 7.0.0, 7.1.0