Sets the alignment characteristic of the paragraph style attribute for the characters in a
to alignment
.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
- (void)setAlignment:(NSText Alignment)alignment range:(NSRange)range;
Parameters
alignment
The alignment to use.
aRange
The range of characters.
Discussion
When attribute fixing takes place, this change will affect only paragraphs whose first character was included in a
. Raises an NSRange
if any part of a
lies beyond the end of the receiver’s characters.