> 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/horizontalalignment.md).

# HorizontalAlignment

## Overview

HorizontalAlignment is an Enum that specifies the horizontal alignment method for UI elements.

It is used as the HorizontalAlignment property in GuiBase and its subclasses, determining how an element is aligned horizontally within its parent container.

## Items

| Name   | Value | Description                                                   |
| ------ | ----- | ------------------------------------------------------------- |
| Center | 0     | Aligns the element to the center in the horizontal direction. |
| Left   | 1     | Aligns the element to the left in the horizontal direction.   |
| Right  | 2     | Aligns the element to the right in the horizontal direction.  |

## See also

{% content-ref url="/pages/5hGnkIB64BrphdiMzufZ" %}
[UIGridStyleLayout](/development/api-reference/classes/uigridstylelayout.md)
{% endcontent-ref %}
