
**Inheritance:**
java.lang.Object
```
public class MeasurementUnits
```

Specifies the unit of measurement.

 **Examples:** 

Shows how to make a saved document conform to an older ODT schema.

```

 Document doc = new Document(getMyDir() + "Rendering.docx");

 OdtSaveOptions saveOptions = new OdtSaveOptions();
 {
     saveOptions.setMeasureUnit(OdtSaveMeasureUnit.CENTIMETERS);
     saveOptions.isStrictSchema11(exportToOdt11Specs);
 }

 doc.save(getArtifactsDir() + "OdtSaveOptions.Odt11Schema.odt", saveOptions);
 
```
## Fields

| Field | Description |
| --- | --- |
| [CENTIMETERS](#CENTIMETERS) | Centimeters. |
| [INCHES](#INCHES) | Inches. |
| [MILLIMETERS](#MILLIMETERS) | Millimeters. |
| [PICAS](#PICAS) | Picas (commonly used in traditional typewriter font spacing). |
| [POINTS](#POINTS) | Points. |
| [length](#length) |  |
## Methods

| Method | Description |
| --- | --- |
| [fromName(String measurementUnitsName)](#fromName-java.lang.String) |  |
| [getName(int measurementUnits)](#getName-int) |  |
| [getValues()](#getValues) |  |
| [toString(int measurementUnits)](#toString-int) |  |
### CENTIMETERS {#CENTIMETERS}
```
public static int CENTIMETERS
```


Centimeters.

### INCHES {#INCHES}
```
public static int INCHES
```


Inches.

### MILLIMETERS {#MILLIMETERS}
```
public static int MILLIMETERS
```


Millimeters.

### PICAS {#PICAS}
```
public static int PICAS
```


Picas (commonly used in traditional typewriter font spacing).

### POINTS {#POINTS}
```
public static int POINTS
```


Points.

### length {#length}
```
public static int length
```


### fromName(String measurementUnitsName) {#fromName-java.lang.String}
```
public static int fromName(String measurementUnitsName)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| measurementUnitsName | java.lang.String |  |

**Returns:**
int
### getName(int measurementUnits) {#getName-int}
```
public static String getName(int measurementUnits)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| measurementUnits | int |  |

**Returns:**
java.lang.String
### getValues() {#getValues}
```
public static int[] getValues()
```




**Returns:**
int[]
### toString(int measurementUnits) {#toString-int}
```
public static String toString(int measurementUnits)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| measurementUnits | int |  |

**Returns:**
java.lang.String
