---
name: TextXAlignment
last_updated: 2026-06-11T23:11:58Z
type: enum
summary: "Determines horizontal alignment of text."
---

# TextXAlignment

Determines horizontal alignment of text.

**Type:** enum

## Description

Determines horizontal alignment of text.

Used by [TextLabel](/docs/reference/engine/classes/TextLabel.md),
[TextButton](/docs/reference/engine/classes/TextButton.md), and
[TextBox](/docs/reference/engine/classes/TextBox.md).

## Items

| Name | Value | Description |
|------|-------|-------------|
| `Left` | 0 | Alignment starts at the left side of the GUI object. |
| `Right` | 1 | Alignment starts at the right side of the GUI object. |
| `Center` | 2 | Aligned starts at the center of the GUI object and spreads equally left and right. |