> For the complete documentation index, see [llms.txt](https://docs.overdare.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overdare.com/development/api-reference/enums/textxalignment.md).

# TextXAlignment

## Overview

TextXAlignment is an Enum that specifies the horizontal alignment style of text.

This is used in the TextXAlignment properties of TextLabel and TextButton, and determines where text is placed within the element: left, center, and right.

## Items

| Name   | Value | Description                             |
| ------ | ----- | --------------------------------------- |
| Left   | 0     | Aligns text to the left.                |
| Right  | 1     | Aligns text to the right.               |
| Center | 2     | Aligns text to the center horizontally. |

## See also

{% content-ref url="/pages/CTjPyf13rS5gpJ0zxpMp" %}
[TextButton](/development/api-reference/classes/textbutton.md)
{% endcontent-ref %}

{% content-ref url="/pages/zjNQugnDrMlHZqOsy4VP" %}
[TextLabel](/development/api-reference/classes/textlabel.md)
{% endcontent-ref %}
