Thickness.Equals Thickness.Equals Thickness.Equals Thickness.Equals Method

定義

比較 Thickness 的執行個體是否相等。Compares instances of Thickness for equality.

多載

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

比較這個 Thickness 結構與其他 Object 是否相等。Compares this Thickness structure to another Object for equality.

Equals(Thickness) Equals(Thickness) Equals(Thickness)

比較這個 Thickness 結構與另一個 Thickness 結構是否相等。Compares this Thickness structure to another Thickness structure for equality.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

比較這個 Thickness 結構與其他 Object 是否相等。Compares this Thickness structure to another Object for equality.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

參數

obj
Object Object Object Object

要比較的物件。The object to compare.

傳回

如果兩個物件相等則為 true,否則為 falsetrue if the two objects are equal; otherwise, false.

備註

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

Equals(Thickness) Equals(Thickness) Equals(Thickness)

比較這個 Thickness 結構與另一個 Thickness 結構是否相等。Compares this Thickness structure to another Thickness structure for equality.

public:
 virtual bool Equals(System::Windows::Thickness thickness);
public bool Equals (System.Windows.Thickness thickness);
override this.Equals : System.Windows.Thickness -> bool

參數

thickness
Thickness Thickness Thickness Thickness

要比較是否相等的 Thickness 執行個體。An instance of Thickness to compare for equality.

傳回

如果兩個 Thickness 執行個體相等則為 true,否則為 falsetrue if the two instances of Thickness are 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.

適用於