Thickness.Equals Method (Thickness)

July 28, 2014

Compares this Thickness structure to another Thickness structure for equality.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public bool Equals(
	Thickness thickness
)

Parameters

thickness
Type: System.Windows.Thickness
An instance of Thickness to compare for equality.

Return Value

Type: System.Boolean
true 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft