This documentation is archived and is not being maintained.

Int32Rect.Equals Method (Int32Rect, Int32Rect)

Determines whether the specified rectangles are equal.

Namespace: System.Windows
Assembly: WindowsBase (in windowsbase.dll)

public static bool Equals (
	Int32Rect int32Rect1,
	Int32Rect int32Rect2
public static boolean Equals (
	Int32Rect int32Rect1, 
	Int32Rect int32Rect2
public static function Equals (
	int32Rect1 : Int32Rect, 
	int32Rect2 : Int32Rect
) : boolean
You cannot use methods in XAML.



The first rectangle to compare.


The second rectangle to compare.

Return Value

true if int32Rect1 and int32Rect2 have the same X, Y, Width, and Height; otherwise, false.

This operation tests for object equality.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0