## CSSPrimitiveValue.GetIntValue method

该方法用于获取指定单位的int值。如果此 CSS 值不包含 int 值或无法转换为指定单位，则会引发 DOMException。

```csharp
public abstract int GetIntValue(ushort unitType)
```

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

### 返回值

返回值

### 也可以看看

* class [CSSPrimitiveValue](../)
* 命名空间 [Aspose.Html.Dom.Css](../../cssprimitivevalue/)
* 部件 [Aspose.HTML](../../../)


