Size.Inequality(Size, Size) 运算符

定义

测试两个 Size 结构是否不同。Tests whether two Size structures are different.

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

参数

sz1
Size

不等运算符左侧的 Size 结构。The Size structure on the left of the inequality operator.

sz2
Size

不等运算符右侧的 Size 结构。The Size structure on the right of the inequality operator.

返回

Boolean

如果 sz1sz2 的宽度或高度不同,则为 true;如果 sz1sz2 相等,则为 falsetrue if sz1 and sz2 differ either in width or height; false if sz1 and sz2 are equal.

适用于