SizeF.Inequality(SizeF, SizeF) 運算子

定義

測試兩個 SizeF 結構是否不同。Tests whether two SizeF structures are different.

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

參數

sz1
SizeF

SizeF 結構,位在不相等運算子的左側。The SizeF structure on the left of the inequality operator.

sz2
SizeF

SizeF 結構,位在不相等運算子的右側。The SizeF structure on the right of the inequality operator.

傳回

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

適用於