## UnitType class

指定测量单位。

```csharp
public sealed class UnitType : IEquatable<UnitType>
```

## 方法

| 姓名 | 描述 |
| --- | --- |
| override [Equals](../../aspose.html.drawing/unittype/equals/#equals_1)(object) | 判断指定的是否Object 等于这个实例. |
| [Equals](../../aspose.html.drawing/unittype/equals/#equals)(UnitType) | 判断指定的是否`UnitType` 等于这个实例. |
| override [GetHashCode](../../aspose.html.drawing/unittype/gethashcode/)() | 返回此实例的哈希码。 |
| override [ToString](../../aspose.html.drawing/unittype/tostring/)() | 返回一个String代表这个实例. |
| [operator ==](../../aspose.html.drawing/unittype/op_equality/) | 判断指定的两个是否`UnitType`值相等. |
| [explicit operator](../../aspose.html.drawing/unittype/op_explicit/) | 执行显式转换`UnitType`到String. |
| [implicit operator](../../aspose.html.drawing/unittype/op_implicit/) | 执行隐式转换String到`UnitType`. |
| [operator !=](../../aspose.html.drawing/unittype/op_inequality/) | 判断指定的两个是否`UnitType`值不相等。 |

## 字段

| 姓名 | 描述 |
| --- | --- |
| static readonly [Auto](../../aspose.html.drawing/unittype/auto/) | 未定义测量。 |
| static readonly [Ch](../../aspose.html.drawing/unittype/ch/) | 测量值是相对于“0”（零）的宽度。 |
| static readonly [Cm](../../aspose.html.drawing/unittype/cm/) | 测量单位为厘米 |
| static readonly [Deg](../../aspose.html.drawing/unittype/deg/) | 测量单位为度。 |
| static readonly [Dpcm](../../aspose.html.drawing/unittype/dpcm/) | 测量单位为每厘米点数。 |
| static readonly [Dpi](../../aspose.html.drawing/unittype/dpi/) | 测量单位为每英寸点数。 |
| static readonly [Dppx](../../aspose.html.drawing/unittype/dppx/) | 测量单位为每像素点数。 |
| static readonly [Em](../../aspose.html.drawing/unittype/em/) | 测量值是相对于父元素字体的高度。 |
| static readonly [Ex](../../aspose.html.drawing/unittype/ex/) | 测量值是相对于父元素字体的小写字母 x 的高度。 |
| static readonly [Grad](../../aspose.html.drawing/unittype/grad/) | 测量单位为 gradians. |
| static readonly [Hz](../../aspose.html.drawing/unittype/hz/) | 测量单位为赫兹。 |
| static readonly [In](../../aspose.html.drawing/unittype/in/) | 测量单位为英寸 |
| static readonly [Integer](../../aspose.html.drawing/unittype/integer/) | 测量值是一个整数。 |
| static readonly [KHz](../../aspose.html.drawing/unittype/khz/) | 测量单位为千赫兹。 |
| static readonly [Mm](../../aspose.html.drawing/unittype/mm/) | 测量单位为毫米 |
| static readonly [Ms](../../aspose.html.drawing/unittype/ms/) | 测量单位为毫秒。 |
| static readonly [Pc](../../aspose.html.drawing/unittype/pc/) | 测量单位为 picas |
| static readonly [Percentage](../../aspose.html.drawing/unittype/percentage/) | 测量值以百分比表示。 |
| static readonly [Pt](../../aspose.html.drawing/unittype/pt/) | 测量以点为单位 |
| static readonly [Px](../../aspose.html.drawing/unittype/px/) | 测量单位为像素 |
| static readonly [Q](../../aspose.html.drawing/unittype/q/) | 测量单位为四分之一毫米 |
| static readonly [Rad](../../aspose.html.drawing/unittype/rad/) | 测量单位为弧度。 |
| static readonly [Real](../../aspose.html.drawing/unittype/real/) | 测量值是一个实数。 |
| static readonly [Rem](../../aspose.html.drawing/unittype/rem/) | 测量值与根元素的字体大小有关。 |
| static readonly [S](../../aspose.html.drawing/unittype/s/) | 测量以秒为单位。 |
| static readonly [Turn](../../aspose.html.drawing/unittype/turn/) | 轮流测量。 |
| static readonly [Vh](../../aspose.html.drawing/unittype/vh/) | 测量值是相对于视口高度的 1%* 试试看 |
| static readonly [Vmax](../../aspose.html.drawing/unittype/vmax/) | 测量值是相对于视口的 1%* 较大尺寸试试看 |
| static readonly [Vmin](../../aspose.html.drawing/unittype/vmin/) | 测量值是相对于视口* 较小尺寸的 1% 试试吧 |
| static readonly [Vw](../../aspose.html.drawing/unittype/vw/) | 测量值是相对于视口宽度的 1% * |

### 也可以看看

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


