## LengthOrAuto class

表示存储长度或“自动”单位的容器..

```csharp
public class LengthOrAuto : Unit
```

## 构造函数

| 姓名 | 描述 |
| --- | --- |
| [LengthOrAuto](lengthorauto/#constructor)() | 初始化一个新的实例`LengthOrAuto`类并将状态设置为“自动”. |
| [LengthOrAuto](lengthorauto/#constructor_1)(Length) | 初始化一个新的实例`LengthOrAuto`类并将状态设置为“长度”. |

## 特性

| 姓名 | 描述 |
| --- | --- |
| [IsAuto](../../aspose.html.drawing/lengthorauto/isauto/) { get; } | 获取一个值，指示此实例是否处于“自动”状态。 |
| [Length](../../aspose.html.drawing/lengthorauto/length/) { get; set; } | 获取或设置长度。 |
| [UnitType](../../aspose.html.drawing/lengthorauto/unittype/) { get; } | 获取单位类型[`Unit`](../unit/). |

## 方法

| 姓名 | 描述 |
| --- | --- |
| override [Equals](../../aspose.html.drawing/unit/equals/)(object) | 判断指定的是否Object 等于这个实例. |
| override [Equals](../../aspose.html.drawing/lengthorauto/equals/#equals)(Unit) | 判断指定的是否[`Unit`](../unit/) 等于这个实例. |
| override [GetHashCode](../../aspose.html.drawing/unit/gethashcode/)() | 返回此实例的哈希码。 |
| [SetAuto](../../aspose.html.drawing/lengthorauto/setauto/)() | 将容器重置为“自动”状态。 |
| override [ToString](../../aspose.html.drawing/lengthorauto/tostring/)() | 返回一个String代表这个实例. |
| [implicit operator](../../aspose.html.drawing/lengthorauto/op_implicit/) | 执行隐式转换[`Length`](./length/)到`LengthOrAuto`. |

### 也可以看看

* class [Unit](../unit/)
* 命名空间 [Aspose.Html.Drawing](../../aspose.html.drawing/)
* 部件 [Aspose.HTML](../../)


