Rect.Equality Operator
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Compares two Rect structures for equality.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- rect1
- Type: System.Windows.Rect
The first rectangle to compare.
- rect2
- Type: System.Windows.Rect
The second rectangle to compare.
Return Value
Type: System.Booleantrue if the Rect structures have the same x,y,width,height property values; otherwise, false.
In this comparison, two instances with all property values of Double.NaN are considered equal.
Show:
Note: