# HorizontalAlignment

> How text is horizontally aligned within its layout area.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.TextCore](/engine/6000.7/script-reference/unityengine/textcore.md)
* **Assembly:** UnityEngine.TextCoreTextEngineModule

```csharp
public enum HorizontalAlignment
```

## Fields

| Value                                                                                              | Description                                                                           |
| -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| [Center](/engine/6000.7/script-reference/unityengine/textcore/horizontalalignment/center.md)       | Text is centered within the layout area.                                              |
| [Flush](/engine/6000.7/script-reference/unityengine/textcore/horizontalalignment/flush.md)         | Spaces are stretched so every line, including the last, fills the layout area.        |
| [Justified](/engine/6000.7/script-reference/unityengine/textcore/horizontalalignment/justified.md) | Spaces are stretched so lines fill the layout area; the last line stays left-aligned. |
| [Left](/engine/6000.7/script-reference/unityengine/textcore/horizontalalignment/left.md)           | Text is aligned to the left of the layout area.                                       |
| [Right](/engine/6000.7/script-reference/unityengine/textcore/horizontalalignment/right.md)         | Text is aligned to the right of the layout area.                                      |
