Size.Inequality(Size, Size) 运算符

定义

比较 Size 的两个实例是否不相等。Compares two instances of Size for inequality.

public:
 static bool operator !=(System::Windows::Size size1, System::Windows::Size size2);
public static bool operator != (System.Windows.Size size1, System.Windows.Size size2);
static member op_Inequality : System.Windows.Size * System.Windows.Size -> bool
Public Shared Operator != (size1 As Size, size2 As Size) As Boolean

参数

size1
Size

要比较的第一个 Size 实例。The first instance of Size to compare.

size2
Size

要比较的第二个 Size 实例。The second instance of Size to compare.

返回

如果 Size 的实例不相等,则为 true;否则为 falsetrue if the instances of Size are not equal; otherwise false.

适用于