# TextAlignment

## Content

[**DsPdfJS API v9.1.3**](../README)

***

[DsPdfJS API](../globals) / TextAlignment

# Enumeration: TextAlignment

Specifies the alignment of paragraph text along the reading direction axis.

## Enumeration Members

### Center

> **Center**: `2`

The center of the paragraph text is aligned to the center of the layout box.

***

### Distributed

> **Distributed**: `4`

Justifies all text lines regardless of paragraph breaks.

***

### Justified

> **Justified**: `3`

Aligns text to the leading side, and also justifies text to fill the lines.

***

### Leading

> **Leading**: `0`

The leading edge of the paragraph text is aligned to the leading edge of the layout box.

***

### Trailing

> **Trailing**: `1`

The trailing edge of the paragraph text is aligned to the trailing edge of the layout box.
