## Unit class

Fournit la classe de base pour les unités de mesure.

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

## Propriétés

| Nom | La description |
| --- | --- |
| [UnitType](../../aspose.html.drawing/unit/unittype/) { get; } | Obtient le type d'unité du`Unit` . |

## Méthodes

| Nom | La description |
| --- | --- |
| override [Equals](../../aspose.html.drawing/unit/equals/#equals_1)(object) | Détermine si la valeur spécifiéeObject , est égal à cette instance. |
| virtual [Equals](../../aspose.html.drawing/unit/equals/#equals)(Unit) | Détermine si la valeur spécifiée`Unit` , est égal à cette instance. |
| override [GetHashCode](../../aspose.html.drawing/unit/gethashcode/)() | Renvoie un code de hachage pour cette instance. |
| override [ToString](../../aspose.html.drawing/unit/tostring/)() | Renvoie unString qui représente cette instance. |
| static [FromCentimeters](../../aspose.html.drawing/unit/fromcentimeters/)(double) | Renvoie un[`Length`](../length/) objet représenté en centimètres. |
| static [FromDegrees](../../aspose.html.drawing/unit/fromdegrees/)(double) | Renvoie un[`Angle`](../angle/) objet qui est représenté en degrés. |
| static [FromDotsPerCentimeters](../../aspose.html.drawing/unit/fromdotspercentimeters/)(double) | Renvoie un[`Resolution`](../resolution/) objet qui est représenté en points par centimètres. |
| static [FromDotsPerInch](../../aspose.html.drawing/unit/fromdotsperinch/)(double) | Renvoie un[`Resolution`](../resolution/) objet qui est représenté en points par pouce. |
| static [FromDotsPerPixel](../../aspose.html.drawing/unit/fromdotsperpixel/)(double) | Renvoie un[`Resolution`](../resolution/) objet qui est représenté en points par pixels. |
| static [FromGradians](../../aspose.html.drawing/unit/fromgradians/)(double) | Renvoie un[`Angle`](../angle/)objet représenté en grades. |
| static [FromHertz](../../aspose.html.drawing/unit/fromhertz/)(double) | Renvoie un[`Frequency`](../frequency/) objet représenté en hertz. |
| static [FromInches](../../aspose.html.drawing/unit/frominches/)(double) | Renvoie un[`Length`](../length/) objet qui est représenté en pouces. |
| static [FromKiloHertz](../../aspose.html.drawing/unit/fromkilohertz/)(double) | Renvoie un[`Frequency`](../frequency/) objet qui est représenté en kiloHertz. |
| static [FromMillimeters](../../aspose.html.drawing/unit/frommillimeters/)(double) | Renvoie un[`Length`](../length/) objet représenté en millimètres. |
| static [FromMilliseconds](../../aspose.html.drawing/unit/frommilliseconds/)(double) | Renvoie un[`Time`](../time/) objet représenté en millisecondes. |
| static [FromPicas](../../aspose.html.drawing/unit/frompicas/)(double) | Renvoie un[`Length`](../length/) objet représenté en picas. |
| static [FromPixels](../../aspose.html.drawing/unit/frompixels/)(double) | Renvoie un[`Length`](../length/) objet représenté en pixels. |
| static [FromPoints](../../aspose.html.drawing/unit/frompoints/)(double) | Renvoie un[`Length`](../length/) objet qui est représenté en points. |
| static [FromQuarterMillimeters](../../aspose.html.drawing/unit/fromquartermillimeters/)(double) | Renvoie un[`Length`](../length/) objet représenté en quart de millimètre. |
| static [FromRadians](../../aspose.html.drawing/unit/fromradians/)(double) | Renvoie un[`Angle`](../angle/) objet représenté en radians. |
| static [FromSeconds](../../aspose.html.drawing/unit/fromseconds/)(double) | Renvoie un[`Time`](../time/) objet représenté en secondes. |
| static [FromTurns](../../aspose.html.drawing/unit/fromturns/)(double) | Renvoie un[`Angle`](../angle/) objet qui est représenté à tour de rôle. |

### Voir également

* espace de noms [Aspose.Html.Drawing](../../aspose.html.drawing/)
* Assemblée [Aspose.HTML](../../)


