Enumeration

NSTextAlignment

These constants specify text alignment.

Declaration

typedef enum NSTextAlignment : NSInteger {
    ...
} NSTextAlignment;

Topics

Constants

NSTextAlignmentLeft

Text is visually left aligned.

NSTextAlignmentRight

Text is visually right aligned.

NSTextAlignmentCenter

Text is visually center aligned.

NSTextAlignmentJustified

Text is justified.

NSTextAlignmentNatural

Use the default alignment associated with the current localization of the app. The default alignment for left-to-right scripts is NSTextAlignmentLeft, and the default alignment for right-to-left scripts is NSTextAlignmentRight.