Thickness.Equals Method (Thickness)

 

Compares this Thickness structure to another Thickness structure for equality.

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

Public Function Equals (
	thickness As Thickness
) As Boolean

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.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: