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.

C#
public override bool Equals(object obj);

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

.NET Framework 4.8.1 ve diğer sürümler
Ürün Sürümler
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Equals(Thickness)

Compares this Thickness structure to another Thickness structure for equality.

C#
public bool Equals(System.Windows.Thickness thickness);

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

.NET Framework 4.8.1 ve diğer sürümler
Ürün Sürümler
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10