<div class="meta" robots="noindex">

</div>

Enumeration

# Xojo.iOSTextAlignment

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2020r2. Please use `MobileTextControl<mobiletextcontrol.alignments>` as a replacement.

</div>

## Description

Specifies text alignment for iOS controls such as `MobileLabel</api/user_interface/mobile/mobilelabel>`, `MobileTextField</api/user_interface/mobile/mobiletextfield>`, `MobileTextArea</api/user_interface/mobile/mobiletextarea>` and `iOSGraphics</api/deprecated/iosgraphics>`.

## Values

| Enum      | Description                                                                     |
|-----------|---------------------------------------------------------------------------------|
| Left      | Align text along the left edge.                                                 |
| Center    | Align text equally along both sides of the center line.                         |
| Right     | Align text along the right edge.                                                |
| Justified | Fully justify the text so that the last line in a paragraph is natural aligned. |
| Natural   | Use the default alignment associated with the current script.                   |

## Compatibility

All project types on all supported operating systems.
