Επεξεργασία

Κοινή χρήση μέσω


Thickness.Equals Method

Definition

Compares instances of Thickness for equality.

Overloads

Equals(Object)

Compares this Thickness structure to another Object for equality.

Equals(Thickness)

Compares this Thickness structure to another Thickness structure for equality.

Equals(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

Parameters

obj
Object

The object to compare.

Returns

true if the two objects are equal; otherwise, false.

Remarks

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.

Applies to

Equals(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
Public Function Equals (thickness As Thickness) As Boolean

Parameters

thickness
Thickness

An instance of Thickness to compare for equality.

Returns

true if the two instances of Thickness are equal; otherwise, false.

Implements

Remarks

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.

Applies to