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

适用于