iOS Guides | Samples

UIKit.UITextAlignment Enumeration

An enumeration of text alignments.

Syntax

[ObjCRuntime.Native]
public enum UITextAlignment

Members

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.

Requirements

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

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.