Thickness.Inequality(Thickness, Thickness) Thickness.Inequality(Thickness, Thickness) Thickness.Inequality(Thickness, Thickness) Thickness.Inequality(Thickness, Thickness) Operator

定義

比較兩個 Thickness 結構是否相等。Compares two Thickness structures for inequality.

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

參數

t1
Thickness Thickness Thickness Thickness

要比較的第一個結構。The first structure to compare.

t2
Thickness Thickness Thickness Thickness

要比較的另一個結構。The other structure to compare.

傳回

如果兩個 Thickness 執行個體相等則為 true,否則為 falsetrue if the two instances of Thickness are not equal; otherwise, false.

備註

在邏輯上相等的兩個浮點值上測試是否相等或不相等可能會失敗, 因為在值運作時, 可以累積的精確度錯誤。Testing for equality or inequality on two floating-point values that are logically equivalent might fail because of precision errors that can accumulate as the values are operated on.

適用於