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