## GetValue() {#getvalue}

Gets the unit value.

```csharp
public double GetValue()
```

### Return Value

The object value.

### See Also

* class [Numeric](../)
* namespace [Aspose.Html.Drawing](../../../aspose.html.drawing/)
* assembly [Aspose.HTML](../../../)

---

## GetValue(*[UnitType](../../unittype/)*) {#getvalue_1}

Gets the value converted to the specified [`UnitType`](../../unittype/).

```csharp
public double GetValue(UnitType unitType)
```

| Parameter | Type | Description |
| --- | --- | --- |
| unitType | UnitType | Type of the unit. |

### Return Value

Returns value that is converted to specified type.

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentNullException | unitType |

### See Also

* class [UnitType](../../unittype/)
* class [Numeric](../)
* namespace [Aspose.Html.Drawing](../../../aspose.html.drawing/)
* assembly [Aspose.HTML](../../../)
