共用方式為


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)

適用於