iOS Guides | Samples

UIKit.UITextAlignment Enumeration

An enumeration of text alignments.


public enum UITextAlignment


Member NameDescription
CenterText is centered.
JustifiedText spreads to the margins.
LeftText is left-aligned.
NaturalAlignment is based on the text's script.
RightText is right-aligned.


Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions:

The members of UIKit.UITextAlignment are listed below.

See Also: Enum

Public Fields

CenterUITextAlignment. Text is centered.
JustifiedUITextAlignment. Text spreads to the margins.
LeftUITextAlignment. Text is left-aligned.
NaturalUITextAlignment. Alignment is based on the text's script.
RightUITextAlignment. Text is right-aligned.