共用方式為


Int32Rect.Inequality(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 op_Inequality : System.Windows.Int32Rect * System.Windows.Int32Rect -> bool
Public Shared Operator != (int32Rect1 As Int32Rect, int32Rect2 As Int32Rect) As Boolean

參數

int32Rect1
Int32Rect

要比較的第一個矩形。

int32Rect2
Int32Rect

要比較的第二個矩形。

傳回

int32Rect1int32Rect2 擁有相同的 XYWidthHeight,即為 false;若這些值全都相同,則為 true

備註

這個運算子的對等方法是 的否定。 Equals

適用於