RectExtensions.IntersectsWith(Rect, Rect) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines if a rectangle intersects with another rectangle.
C#
public static bool IntersectsWith (this Windows.Foundation.Rect rect1, Windows.Foundation.Rect rect2);
static member IntersectsWith : Windows.Foundation.Rect * Windows.Foundation.Rect -> bool
<Extension()>
Public Function IntersectsWith (rect1 As Rect, rect2 As Rect) As Boolean
- rect1
- Rect
The first rectangle to test.
- rect2
- Rect
The second rectangle to test.
This method returns true
if there is any intersection, otherwise false
.
Produit | Versions |
---|---|
Windows Community Toolkit | 7.0.0, 7.1.0 |