Provides extension methods for the type Thickness.
- Inheritance:
- object object
Methods
IsEffectivelyEqual(Thickness, Thickness)
Determines whether the two values are close enough to be considered equal.
Parameter | Type | Description |
---|---|---|
left | Thickness | The value on the left side of the comparison. |
right | Thickness | The value on the left side of the comparison. |
Returns
- bool:
true
if the two values are close enough to be considered equal; otherwise,false
.
IsEffectivelyUniform(Thickness)
Determines whether the values of the specified thickness are close enough to be considered uniform.
Parameter | Type | Description |
---|---|---|
value | Thickness | The value to compare. |
Returns
- bool:
true
if the values of the specified thickness are close enough to be considered uniform; otherwise,false
.
IsEffectivelyZero(Thickness)
Determines whether the specified value is close enough to zero to be considered equal.
Parameter | Type | Description |
---|---|---|
value | Thickness | The value to compare with zero. |
Returns
- bool:
true
if the specified value is close enough to zero to be considered equal; otherwise,false
.
Round(Thickness, RoundMode)
Returns a thickness with its values rounded using the specified Round
Parameter | Type | Description |
---|---|---|
value | Thickness | The value to round. |
mode | Round |
The Round |
Returns
SetSides(Thickness, Sides, double)
Returns a thickness with the specified sides set to the given value.
Parameter | Type | Description |
---|---|---|
value | Thickness | The value to update. |
sides | Sides | The Sides to set. |
thickness | double | The thickness value. |
Returns
- Thickness:
A thickness with the specified sides set to the given value.
SetSides(Thickness, Sides, Thickness)
Returns a thickness with the specified sides set to the given value.
Parameter | Type | Description |
---|---|---|
value | Thickness | The value to update. |
sides | Sides | The Sides to set. |
thickness | Thickness | The thickness values. |
Returns
- Thickness:
A thickness with the specified sides set to the given value.