
**Inheritance:**
java.lang.Object
```
public class Direction
```

Text direction.
## Fields

| Field | Description |
| --- | --- |
| [BTT](#BTT) | Bottom-to-top writing direction. |
| [DEFAULT](#DEFAULT) | Default value, same as [LTR](../../com.aspose.words/direction/\#LTR). |
| [LTR](#LTR) | Left-to-right writing direction. |
| [RTL](#RTL) | Right-to-left writing direction. |
| [TTB](#TTB) | Top-to-bottom writing direction. |
| [length](#length) |  |
## Methods

| Method | Description |
| --- | --- |
| [fromName(String directionName)](#fromName-java.lang.String) |  |
| [getName(int direction)](#getName-int) |  |
| [getValues()](#getValues) |  |
| [toString(int direction)](#toString-int) |  |
### BTT {#BTT}
```
public static int BTT
```


Bottom-to-top writing direction.

### DEFAULT {#DEFAULT}
```
public static int DEFAULT
```


Default value, same as [LTR](../../com.aspose.words/direction/\#LTR).

### LTR {#LTR}
```
public static int LTR
```


Left-to-right writing direction.

### RTL {#RTL}
```
public static int RTL
```


Right-to-left writing direction.

### TTB {#TTB}
```
public static int TTB
```


Top-to-bottom writing direction.

### length {#length}
```
public static int length
```


### fromName(String directionName) {#fromName-java.lang.String}
```
public static int fromName(String directionName)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| directionName | java.lang.String |  |

**Returns:**
int
### getName(int direction) {#getName-int}
```
public static String getName(int direction)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| direction | int |  |

**Returns:**
java.lang.String
### getValues() {#getValues}
```
public static int[] getValues()
```




**Returns:**
int[]
### toString(int direction) {#toString-int}
```
public static String toString(int direction)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| direction | int |  |

**Returns:**
java.lang.String
