Language

NSTextAlignment Enum

Definition

Specifies the horizontal alignment of text within its container.

[ObjCRuntime.Native(ConvertToManaged="NSTextAlignmentExtensions.ToManaged", ConvertToNative="NSTextAlignmentExtensions.ToNative")]
public enum NSTextAlignment
[<ObjCRuntime.Native(ConvertToManaged="NSTextAlignmentExtensions.ToManaged", ConvertToNative="NSTextAlignmentExtensions.ToNative")>]
type NSTextAlignment = 
Inheritance
NSTextAlignment
Attributes

Fields

Name Value Description
Left 0

Aligns text to the left edge of its container.

Right 1

Aligns text to the right edge of its container.

Center 2

Centers text within its container.

Justified 3

Justifies text so that both edges align with the container, except for the last line.

Natural 4

Aligns text according to the natural writing direction of its script (left for left-to-right languages, right for right-to-left languages).

Applies to