# Enum.TextDirection

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/TextDirection/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/TextDirection

Controls the base text rendering direction for [`TextLabel`](https://rapi.sleaze.dev/classes/TextLabel.md), [`TextButton`](https://rapi.sleaze.dev/classes/TextButton.md), and [`TextBox`](https://rapi.sleaze.dev/classes/TextBox.md) instances.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `Auto` | 0 | Automatically determines text direction from the first strong directional character using the Unicode Bidirectional Algorithm. |
| `LeftToRight` | 1 | Forces the paragraph base direction to left-to-right regardless of the text content. |
| `RightToLeft` | 2 | Forces the paragraph base direction to right-to-left regardless of the text content. |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [TextBox](https://rapi.sleaze.dev/classes/TextBox.md): property `TextDirection`
- [TextButton](https://rapi.sleaze.dev/classes/TextButton.md): property `TextDirection`
- [TextLabel](https://rapi.sleaze.dev/classes/TextLabel.md): property `TextDirection`
