Int32Rect.Equality(Int32Rect, Int32Rect) 運算子
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
比較兩個矩形以達到完全相同的結果。
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
第二個長方形來比較。
傳回
true若 int32Rect1 與 int32Rect2 相同 X、 Y、 Width、 Height;否則 。 false
備註
此運算子的等價方法為 Int32Rect.Equals(Int32Rect, Int32Rect)