# alignment

> Text alignment.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.IMGUIModule

```csharp
public TextAnchor alignment { get; set; }
```

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Prints how text alignment is set.

    void OnGUI()
    {
        Debug.Log(GUI.skin.button.alignment);
    }
}
```
