Int32Rect.Equality(Int32Rect, Int32Rect) 运算符

定义

比较两个矩形是否完全相等。

public:
 static bool operator ==(System::Windows::Int32Rect int32Rect1, System::Windows::Int32Rect int32Rect2);
public static bool operator == (System.Windows.Int32Rect int32Rect1, System.Windows.Int32Rect int32Rect2);
static member ( = ) : System.Windows.Int32Rect * System.Windows.Int32Rect -> bool
Public Shared Operator == (int32Rect1 As Int32Rect, int32Rect2 As Int32Rect) As Boolean

参数

int32Rect1
Int32Rect

要比较的第一个矩形。

int32Rect2
Int32Rect

要比较的第二个矩形。

返回

Boolean

如果 int32Rect1int32Rect2 具有相同的 XYWidthHeight,则返回 true;否则,返回 false

注解

此运算符的等效方法为 Int32Rect.Equals(Int32Rect, Int32Rect)

适用于