Name
NSParagraphStyle — Mac OS X 10.0
Synopsis
Instances of this class are used in attributed strings to encapsulate
paragraph and ruler characteristics to be applied to a range of text.
Paragraph style attributes included such characteristics as paragraph
alignment, line height and spacing, paragraph spacing, and more.
NSParagraphStyle
is an immutable class. If you
require mutability, use its subclass,
NSMutableParagraphStyle
.
|
@interface NSParagraphStyle : NSObject <NSCoding, NSCopying, NSMutableCopying>
|
// Class Methods
|
+ (NSParagraphStyle *)defaultParagraphStyle;
|
+ (NSWritingDirection)defaultWritingDirectionForLanguage:(NSString *)languageName; |
// Instance Methods
|
- (NSTextAlignment)alignment;
|
- (NSWritingDirection)baseWritingDirection;
|
- (float)firstLineHeadIndent;
|
- (float)headIndent;
|
- (NSLineBreakMode)lineBreakMode;
|
- (float)lineSpacing;
|
- (float)maximumLineHeight;
|
- (float)minimumLineHeight;
|
- (float)paragraphSpacing;
|
- (NSArray *)tabStops;
|
- (float)tailIndent;
|
// Methods Implementing NSCoding
|
- (void)encodeWithCoder:(NSCoder *)aCoder; |
- (id)initWithCoder:(NSCoder *)aDecoder; |
// Methods Implementing NSCopying
|
- (id)copyWithZone:(NSZone *)zone; |
// Methods Implementing NSMutableCopying
|
- (id)mutableCopyWithZone:(NSZone *)zone; |
Subclasses
NSMutableParagraphStyle
Get Cocoa in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.