## GetValue() {#getvalue}

获取单位值。

```csharp
public double GetValue()
```

### 返回值

对象值。

### 也可以看看

* class [Numeric](../)
* 命名空间 [Aspose.Html.Drawing](../../numeric/)
* 部件 [Aspose.HTML](../../../)

---

## GetValue(UnitType) {#getvalue_1}

获取转换为指定的值[`UnitType`](../../unittype/).

```csharp
public double GetValue(UnitType unitType)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| unitType | UnitType | 单位类型。 |

### 返回值

返回转换为指定类型的值。

### 例外

| 例外 | （健康）状况 |
| --- | --- |
| ArgumentNullException | 单位类型 |

### 也可以看看

* class [UnitType](../../unittype/)
* class [Numeric](../)
* 命名空间 [Aspose.Html.Drawing](../../numeric/)
* 部件 [Aspose.HTML](../../../)


