## Length class

Represents a length measurement unit.

```csharp
public sealed class Length : Dimension
```

## Properties

| Name | Description |
| --- | --- |
| [UnitType](../../aspose.html.drawing/unit/unittype/) { get; } | Gets the unit type of the [`Unit`](../unit/). |

## Methods

| Name | Description |
| --- | --- |
| [CompareTo](../../aspose.html.drawing/numeric/compareto/)(*[Numeric](../numeric/)*) | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. |
| override [Equals](../../aspose.html.drawing/unit/equals/)(*object*) | Determines whether the specified Object, is equal to this instance. |
| override [Equals](../../aspose.html.drawing/numeric/equals/)(*[Unit](../unit/)*) | Determines whether the specified [`Unit`](../unit/), is equal to this instance. |
| override [GetHashCode](../../aspose.html.drawing/numeric/gethashcode/)() | Returns a hash code for this instance. |
| [GetValue](../../aspose.html.drawing/numeric/getvalue/)() | Gets the unit value. |
| [GetValue](../../aspose.html.drawing/numeric/getvalue/)(*[UnitType](../unittype/)*) | Gets the value converted to the specified [`UnitType`](../unittype/). |
| override [ToString](../../aspose.html.drawing/dimension/tostring/)() | Returns a String that represents this instance. |
| [operator +](../../aspose.html.drawing/length/op_addition/) | Implements the operator +. |
| [operator ==](../../aspose.html.drawing/length/op_equality/) | Implements the operator ==. |
| [operator >](../../aspose.html.drawing/length/op_greaterthan/) | Implements the operator &gt;. |
| [operator >=](../../aspose.html.drawing/length/op_greaterthanorequal/) | Implements the operator &gt;=. |
| [operator !=](../../aspose.html.drawing/length/op_inequality/) | Implements the operator !=. |
| [operator <](../../aspose.html.drawing/length/op_lessthan/) | Implements the operator &lt;. |
| [operator <=](../../aspose.html.drawing/length/op_lessthanorequal/) | Implements the operator &lt;=. |
| [operator -](../../aspose.html.drawing/length/op_subtraction/) | Implements the operator -. |

### See Also

* class [Dimension](../dimension/)
* namespace [Aspose.Html.Drawing](../../aspose.html.drawing/)
* assembly [Aspose.HTML](../../)
