Rect::Equality Operator (Rect, Rect)
.NET Framework (current version)
Compares two rectangles for exact equality.
Assembly: WindowsBase (in WindowsBase.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 rectangles have the same Location and Size values; otherwise, false.
This operation tests for object equality.
In this comparison, two instances of Double::NaN are considered equal.
.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show:
