## UnitType class

Specifies the unit of measurement.

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

## Methods

| Name | Description |
| --- | --- |
| [equals](../../com.aspose.html.drawing/unittype/equals/#equals_1)(object) | Determines whether the specified Object, is equal to this instance. |
| [equals](../../com.aspose.html.drawing/unittype/equals/#equals)(UnitType) | Determines whether the specified `UnitType`, is equal to this instance. |
| [getHashCode](../../com.aspose.html.drawing/unittype/gethashcode/)() | Returns a hash code for this instance. |
| [toString](../../com.aspose.html.drawing/unittype/toString/)() | Returns a String that represents this instance. |
| [operator ==](../../com.aspose.html.drawing/unittype/op_equality/) |  |
| [explicit operator](../../com.aspose.html.drawing/unittype/op_explicit/) |  |
| [implicit operator](../../com.aspose.html.drawing/unittype/op_implicit/) |  |
| [operator !=](../../com.aspose.html.drawing/unittype/op_inequality/) |  |

## Fields

| Name | Description |
| --- | --- |
| static readonly [Auto](../../com.aspose.html.drawing/unittype/auto/) | Measurement is not defined. |
| static readonly [Ch](../../com.aspose.html.drawing/unittype/ch/) | Measurement is relative to width of the "0" (zero). |
| static readonly [Cm](../../com.aspose.html.drawing/unittype/cm/) | Measurement is in centimeters |
| static readonly [Deg](../../com.aspose.html.drawing/unittype/deg/) | Measurement is in degrees. |
| static readonly [Dpcm](../../com.aspose.html.drawing/unittype/dpcm/) | Measurement is in dots per centimeters. |
| static readonly [Dpi](../../com.aspose.html.drawing/unittype/dpi/) | Measurement is in dots per inch. |
| static readonly [Dppx](../../com.aspose.html.drawing/unittype/dppx/) | Measurement is in Dots per pixels unit. |
| static readonly [Em](../../com.aspose.html.drawing/unittype/em/) | Measurement is relative to the height of the parent element's font. |
| static readonly [Ex](../../com.aspose.html.drawing/unittype/ex/) | Measurement is relative to the height of the lowercase letter x of the parent element's font. |
| static readonly [Grad](../../com.aspose.html.drawing/unittype/grad/) | Measurement is in gradians. |
| static readonly [Hz](../../com.aspose.html.drawing/unittype/hz/) | Measurement is in hertz. |
| static readonly [In](../../com.aspose.html.drawing/unittype/in/) | Measurement is in inches |
| static readonly [Integer](../../com.aspose.html.drawing/unittype/integer/) | Measurement is an integer number. |
| static readonly [KHz](../../com.aspose.html.drawing/unittype/khz/) | Measurement is in kiloHertz. |
| static readonly [Mm](../../com.aspose.html.drawing/unittype/mm/) | Measurement is in millimeters |
| static readonly [Ms](../../com.aspose.html.drawing/unittype/ms/) | Measurement is in milliseconds. |
| static readonly [Pc](../../com.aspose.html.drawing/unittype/pc/) | Measurement is in picas |
| static readonly [Percentage](../../com.aspose.html.drawing/unittype/percentage/) | Measurement is in percentage. |
| static readonly [Pt](../../com.aspose.html.drawing/unittype/pt/) | Measurement is in points |
| static readonly [Px](../../com.aspose.html.drawing/unittype/px/) | Measurement is in pixels |
| static readonly [Q](../../com.aspose.html.drawing/unittype/q/) | Measurement is in quarter-millimeters |
| static readonly [Rad](../../com.aspose.html.drawing/unittype/rad/) | Measurement is in radians. |
| static readonly [Real](../../com.aspose.html.drawing/unittype/real/) | Measurement is a real number. |
| static readonly [Rem](../../com.aspose.html.drawing/unittype/rem/) | Measurement is relative to font-size of the root element. |
| static readonly [S](../../com.aspose.html.drawing/unittype/s/) | Measurement is in seconds. |
| static readonly [Turn](../../com.aspose.html.drawing/unittype/turn/) | Measurement is in turns. |
| static readonly [Vh](../../com.aspose.html.drawing/unittype/vh/) | Measurement is relative to 1% of the height of the viewport* Try it |
| static readonly [Vmax](../../com.aspose.html.drawing/unittype/vmax/) | Measurement is relative to 1% of viewport's* larger dimension Try it |
| static readonly [Vmin](../../com.aspose.html.drawing/unittype/vmin/) | Measurement is relative to 1% of viewport's* smaller dimension Try it |
| static readonly [Vw](../../com.aspose.html.drawing/unittype/vw/) | Measurement is relative to 1% of the width of the viewport* |

### See Also

* package [com.aspose.html.drawing](../../com.aspose.html.drawing/)
* package [Aspose.HTML](../../)
