- Inherits from:
- NSParagraphStyle : NSObject
- Conforms to:
- NSCoding
- (NSParagraphStyle)
- NSCopying (NSParagraphStyle)
- NSMutableCopying (NSParagraphStyle)
- NSObject (NSObject)
Declared in:
- AppKit/NSParagraphStyle.h
NSMutableParagraphStyle adds methods to its superclass, NSParagraphStyle, for changing the values of the sub-attributes in a paragraph style attribute. See the NSParagraphStyle and NSAttributedString specifications for more information.
- Setting tab stops
- - setTabStops:
- - addTabStop:
- - removeTabStop:
- Setting other style information
- - setParagraphStyle:
- - setAlignment:
- - setFirstLineHeadIndent:
- - setHeadIndent:
- - setTailIndent:
- - setLineBreakMode:
- - setMaximumLineHeight:
- - setMinimumLineHeight:
- - setLineSpacing:
- - setParagraphSpacing:
- (void)addTabStop:(NSTextTab
*)tabStop
See Also: - removeTabStop:, - setTabStops:, - tabStops (NSParagraphStyle)
- (void)removeTabStop:(NSTextTab
*)tabStop
See Also: - addTabStop:, - setTabStops:, - tabStops (NSParagraphStyle)
- (void)setAlignment:(NSTextAlignment)alignment
NSLeftTextAlignment
NSRightTextAlignment
NSCenterTextAlignment
NSJustifiedTextAlignment
NSNaturalTextAlignment
See Also: - alignment (NSParagraphStyle)
- (void)setFirstLineHeadIndent:(float)aFloat
See Also: - setHeadIndent:, - setTailIndent:, - firstLineHeadIndent (NSParagraphStyle)
- (void)setHeadIndent:(float)aFloat
See Also: - setFirstLineHeadIndent:, - setTailIndent:, - headIndent (NSParagraphStyle)
- (void)setLineBreakMode:(NSLineBreakMode)mode
NSLineBreakByWordWrapping
NSLineBreakByCharWrapping
NSLineBreakByClipping
NSLineBreakByTruncatingHead
NSLineBreakByTruncatingTail
NSLineBreakByTruncatingMiddle
See the description of lineBreakMode in the NSParagraphStyle class specification for descriptions of these values.
- (void)setLineSpacing:(float)aFloat
See Also: - setMaximumLineHeight:, - setMinimumLineHeight:, - setParagraphSpacing:, - lineSpacing (NSParagraphStyle)
- (void)setMaximumLineHeight:(float)aFloat
Although this limit applies to the line itself, line spacing adds extra space between adjacent lines.
See Also: - setMinimumLineHeight:, - setLineSpacing:, - maximumLineHeight (NSParagraphStyle)
- (void)setMinimumLineHeight:(float)aFloat
See Also: - setMaximumLineHeight:, - setLineSpacing:, - minimumLineHeight (NSParagraphStyle)
- (void)setParagraphSpacing:(float)aFloat
See Also: - setLineSpacing:, - paragraphSpacing (NSParagraphStyle)
- (void)setParagraphStyle:(NSParagraphStyle
*)aStyle
- (void)setTabStops:(NSArray
*)tabStops
See Also: - addTabStop:, - removeTabStop:, - tabStops (NSParagraphStyle)
- (void)setTailIndent:(float)aFloat
For example, to create a paragraph style that fits exactly in a 2-inch wide container, set its head indent to 0.0 and its tail indent to 0.0. To create a paragraph style with quarter-inch margins, set its head indent to 0.25 and its tail indent to -0.25.
See Also: - setHeadIndent:, - setFirstLineHeadIndent:, - tailIndent (NSParagraphStyle)