DekGenius.com
[ Team LiB ] Previous Section Next Section

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.

figs/cocn_1567.gif

@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

    [ Team LiB ] Previous Section Next Section