## Unit class

提供测量单位的基类。

```csharp
public abstract class Unit : IEquatable<Unit>
```

## 特性

| 姓名 | 描述 |
| --- | --- |
| [UnitType](../../aspose.html.drawing/unit/unittype/) { get; } | 获取单位类型`Unit`. |

## 方法

| 姓名 | 描述 |
| --- | --- |
| override [Equals](../../aspose.html.drawing/unit/equals/#equals_1)(object) | 判断指定的是否Object 等于这个实例. |
| virtual [Equals](../../aspose.html.drawing/unit/equals/#equals)(Unit) | 判断指定的是否`Unit` 等于这个实例. |
| override [GetHashCode](../../aspose.html.drawing/unit/gethashcode/)() | 返回此实例的哈希码。 |
| override [ToString](../../aspose.html.drawing/unit/tostring/)() | 返回一个String代表这个实例. |
| static [FromCentimeters](../../aspose.html.drawing/unit/fromcentimeters/)(double) | 返回一个[`Length`](../length/)以厘米表示的对象. |
| static [FromDegrees](../../aspose.html.drawing/unit/fromdegrees/)(double) | 返回一个[`Angle`](../angle/)以度数表示的对象. |
| static [FromDotsPerCentimeters](../../aspose.html.drawing/unit/fromdotspercentimeters/)(double) | 返回一个[`Resolution`](../resolution/)以每厘米点数表示的对象。 |
| static [FromDotsPerInch](../../aspose.html.drawing/unit/fromdotsperinch/)(double) | 返回一个[`Resolution`](../resolution/)以每英寸点数表示的对象. |
| static [FromDotsPerPixel](../../aspose.html.drawing/unit/fromdotsperpixel/)(double) | 返回一个[`Resolution`](../resolution/)以每像素点数表示的对象. |
| static [FromGradians](../../aspose.html.drawing/unit/fromgradians/)(double) | 返回一个[`Angle`](../angle/)以 gradians. 表示的对象 |
| static [FromHertz](../../aspose.html.drawing/unit/fromhertz/)(double) | 返回一个[`Frequency`](../frequency/)以赫兹表示的对象. |
| static [FromInches](../../aspose.html.drawing/unit/frominches/)(double) | 返回一个[`Length`](../length/)以英寸表示的对象. |
| static [FromKiloHertz](../../aspose.html.drawing/unit/fromkilohertz/)(double) | 返回一个[`Frequency`](../frequency/)以千赫兹表示的对象。 |
| static [FromMillimeters](../../aspose.html.drawing/unit/frommillimeters/)(double) | 返回一个[`Length`](../length/)以毫米表示的对象. |
| static [FromMilliseconds](../../aspose.html.drawing/unit/frommilliseconds/)(double) | 返回一个[`Time`](../time/)以毫秒表示的对象. |
| static [FromPicas](../../aspose.html.drawing/unit/frompicas/)(double) | 返回一个[`Length`](../length/)在 picas. 中表示的对象 |
| static [FromPixels](../../aspose.html.drawing/unit/frompixels/)(double) | 返回一个[`Length`](../length/)以像素表示的对象. |
| static [FromPoints](../../aspose.html.drawing/unit/frompoints/)(double) | 返回一个[`Length`](../length/)以点表示的对象. |
| static [FromQuarterMillimeters](../../aspose.html.drawing/unit/fromquartermillimeters/)(double) | 返回一个[`Length`](../length/)以四分之一毫米表示的对象。 |
| static [FromRadians](../../aspose.html.drawing/unit/fromradians/)(double) | 返回一个[`Angle`](../angle/)以弧度表示的对象. |
| static [FromSeconds](../../aspose.html.drawing/unit/fromseconds/)(double) | 返回一个[`Time`](../time/)以秒为单位表示的对象。 |
| static [FromTurns](../../aspose.html.drawing/unit/fromturns/)(double) | 返回一个[`Angle`](../angle/)轮流表示的对象. |

### 也可以看看

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


