## LengthOrAuto class

Represents a container for storage length or 'auto' units..

```java
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) | Initializes a new instance of the `LengthOrAuto` class and sets state to 'lenght'. |

## Properties

| Name | Description |
| --- | --- |
| [getIsAuto](../../com.aspose.html.drawing/lengthorauto/isauto/) Gets a value indicating whether this instance is in 'auto'. |
[getLength]
[setLength] Gets or sets the length. |
| [getUnitType](../../com.aspose.html.drawing/lengthorauto/unittype/) Gets the unit type of the [`Unit`](../unit/). |

## Methods

| Name | Description |
| --- | --- |
| [equals](../../com.aspose.html.drawing/unit/equals/)(object) | Determines whether the specified Object, is equal to this instance. |
| [equals](../../com.aspose.html.drawing/lengthorauto/equals/#equals)(Unit) | Determines whether the specified [`Unit`](../unit/), is equal to this instance. |
| [getHashCode](../../com.aspose.html.drawing/unit/gethashcode/)() | Returns a hash code for this instance. |
| [setAuto](../../com.aspose.html.drawing/lengthorauto/setauto/)() | Resets container to state 'auto'. |
| [toString](../../com.aspose.html.drawing/lengthorauto/toString/)() | Returns a String that represents this instance. |
| [implicit operator](../../com.aspose.html.drawing/lengthorauto/op_implicit/) |  |

### See Also

* class [Unit](../unit/)
* package [com.aspose.html.drawing](../../com.aspose.html.drawing/)
* package [Aspose.HTML](../../)
