#
Thickness.Inequality(Thickness, Thickness)
Thickness.Inequality(Thickness, Thickness)
Thickness.Inequality(Thickness, Thickness)
Thickness.Inequality(Thickness, Thickness)
Operator

## Definition

### In this article

Compares two Thickness structures for inequality.

```
public:
static bool operator !=(System::Windows::Thickness t1, System::Windows::Thickness t2);
```

`public static bool operator != (System.Windows.Thickness t1, System.Windows.Thickness t2);`

`static member op_Inequality : System.Windows.Thickness * System.Windows.Thickness -> bool`

`Public Shared Operator != (t1 As Thickness, t2 As Thickness) As Boolean`

#### Parameters

#### Returns

`true`

if the two instances of Thickness are not equal; otherwise, `false`

.

## 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.