## LengthOrAuto class

Represents a container for storage length or 'auto' units..

```csharp
public class LengthOrAuto : Unit
```

## Constructors

| Name | Description |
| --- | --- |
| [LengthOrAuto](lengthorauto/#constructor)() | Initializes a new instance of the `LengthOrAuto` class and sets state to 'auto'. |
| [LengthOrAuto](lengthorauto/#constructor_1)(*[Length](../length/)*) | Initializes a new instance of the `LengthOrAuto` class and sets state to 'lenght'. |

## Properties

| Name | Description |
| --- | --- |
| [IsAuto](../../aspose.html.drawing/lengthorauto/isauto/) { get; } | Gets a value indicating whether this instance is in 'auto'. |
| [Length](../../aspose.html.drawing/lengthorauto/length/) { get; set; } | Gets or sets the length. |
| [UnitType](../../aspose.html.drawing/lengthorauto/unittype/) { get; } | Gets the unit type of the [`Unit`](../unit/). |

## Methods

| Name | Description |
| --- | --- |
| override [Equals](../../aspose.html.drawing/unit/equals/)(*object*) | Determines whether the specified Object, is equal to this instance. |
| override [Equals](../../aspose.html.drawing/lengthorauto/equals/#equals)(*[Unit](../unit/)*) | Determines whether the specified [`Unit`](../unit/), is equal to this instance. |
| override [GetHashCode](../../aspose.html.drawing/unit/gethashcode/)() | Returns a hash code for this instance. |
| [SetAuto](../../aspose.html.drawing/lengthorauto/setauto/)() | Resets container to state 'auto'. |
| override [ToString](../../aspose.html.drawing/lengthorauto/tostring/)() | Returns a String that represents this instance. |
| [implicit operator](../../aspose.html.drawing/lengthorauto/op_implicit/) | Performs an implicit conversion from [`Length`](./length/) to `LengthOrAuto`. |

### See Also

* class [Unit](../unit/)
* namespace [Aspose.Html.Drawing](../../aspose.html.drawing/)
* assembly [Aspose.HTML](../../)
