## Unit class

Fornisce la classe base per le unità di misura.

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

## Proprietà

| Nome | Descrizione |
| --- | --- |
| [UnitType](../../aspose.html.drawing/unit/unittype/) { get; } | Ottiene il tipo di unità di`Unit` . |

## Metodi

| Nome | Descrizione |
| --- | --- |
| override [Equals](../../aspose.html.drawing/unit/equals/#equals_1)(object) | Determina se specificatoObject , è uguale a questa istanza. |
| virtual [Equals](../../aspose.html.drawing/unit/equals/#equals)(Unit) | Determina se specificato`Unit` , è uguale a questa istanza. |
| override [GetHashCode](../../aspose.html.drawing/unit/gethashcode/)() | Restituisce un codice hash per questa istanza. |
| override [ToString](../../aspose.html.drawing/unit/tostring/)() | Restituisce aString che rappresenta questa istanza. |
| static [FromCentimeters](../../aspose.html.drawing/unit/fromcentimeters/)(double) | Restituisce a[`Length`](../length/) oggetto rappresentato in centimetri. |
| static [FromDegrees](../../aspose.html.drawing/unit/fromdegrees/)(double) | Restituisce a[`Angle`](../angle/) oggetto rappresentato in gradi. |
| static [FromDotsPerCentimeters](../../aspose.html.drawing/unit/fromdotspercentimeters/)(double) | Restituisce a[`Resolution`](../resolution/) oggetto rappresentato in punti per centimetri. |
| static [FromDotsPerInch](../../aspose.html.drawing/unit/fromdotsperinch/)(double) | Restituisce a[`Resolution`](../resolution/) oggetto rappresentato in punti per pollice. |
| static [FromDotsPerPixel](../../aspose.html.drawing/unit/fromdotsperpixel/)(double) | Restituisce a[`Resolution`](../resolution/) oggetto rappresentato in punti per pixel. |
| static [FromGradians](../../aspose.html.drawing/unit/fromgradians/)(double) | Restituisce a[`Angle`](../angle/)oggetto rappresentato in gradianti. |
| static [FromHertz](../../aspose.html.drawing/unit/fromhertz/)(double) | Restituisce a[`Frequency`](../frequency/) oggetto rappresentato in hertz. |
| static [FromInches](../../aspose.html.drawing/unit/frominches/)(double) | Restituisce a[`Length`](../length/) oggetto rappresentato in pollici. |
| static [FromKiloHertz](../../aspose.html.drawing/unit/fromkilohertz/)(double) | Restituisce a[`Frequency`](../frequency/) oggetto rappresentato in kiloHertz. |
| static [FromMillimeters](../../aspose.html.drawing/unit/frommillimeters/)(double) | Restituisce a[`Length`](../length/) oggetto rappresentato in millimetri. |
| static [FromMilliseconds](../../aspose.html.drawing/unit/frommilliseconds/)(double) | Restituisce a[`Time`](../time/) oggetto rappresentato in millisecondi. |
| static [FromPicas](../../aspose.html.drawing/unit/frompicas/)(double) | Restituisce a[`Length`](../length/) oggetto rappresentato in picas. |
| static [FromPixels](../../aspose.html.drawing/unit/frompixels/)(double) | Restituisce a[`Length`](../length/) oggetto rappresentato in pixel. |
| static [FromPoints](../../aspose.html.drawing/unit/frompoints/)(double) | Restituisce a[`Length`](../length/) oggetto rappresentato in punti. |
| static [FromQuarterMillimeters](../../aspose.html.drawing/unit/fromquartermillimeters/)(double) | Restituisce a[`Length`](../length/) oggetto rappresentato in quarti di millimetro. |
| static [FromRadians](../../aspose.html.drawing/unit/fromradians/)(double) | Restituisce a[`Angle`](../angle/) oggetto rappresentato in radianti. |
| static [FromSeconds](../../aspose.html.drawing/unit/fromseconds/)(double) | Restituisce a[`Time`](../time/) oggetto rappresentato in secondi. |
| static [FromTurns](../../aspose.html.drawing/unit/fromturns/)(double) | Restituisce a[`Angle`](../angle/) oggetto rappresentato a turno. |

### Guarda anche

* spazio dei nomi [Aspose.Html.Drawing](../../aspose.html.drawing/)
* assemblea [Aspose.HTML](../../)


