May 2003
Intermediate to advanced
566 pages
27h 29m
English
NSParagraphStyle — Mac OS X 10.0
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; |
NSMutableParagraphStyle
Read now
Unlock full access