Instance Property

alignment

The text alignment of the receiver.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
@property(readonly, nonatomic) NSTextAlignment alignment;
macOS
@property(readonly) NSTextAlignment alignment;

Discussion

Natural text alignment is realized as left or right alignment depending on the line sweep direction of the first script contained in the paragraph.

See Also

Accessing Style Information

firstLineHeadIndent

The indentation of the first line of the receiver.

headIndent

The indentation of the receiver’s lines other than the first.

tailIndent

The trailing indentation of the receiver.

lineHeightMultiple

The line height multiple.

maximumLineHeight

The receiver’s maximum line height.

minimumLineHeight

The receiver’s minimum height.

lineSpacing

The distance in points between the bottom of one line fragment and the top of the next.

paragraphSpacing

The space after the end of the paragraph.

paragraphSpacingBefore

The distance between the paragraph’s top and the beginning of its text content.