Rect.Equals Method (Rect)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Indicates whether the specified Rect is equal to the current Rect.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- value
- Type: System.Windows.Rect
The rectangle to compare to the current rectangle.
Return Value
Type: System.Booleantrue if the specified Rect has the same x,y,width,height property values as the current Rect; otherwise, false.
In this comparison, two instances that have property values all of Double.NaN are considered equal.
Show:
Note: