- Inherits from:
- NSParagraphStyle
- Package:
- com.apple.yellow.application
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.
- Constructors
- NSMutableParagraphStyle
- Setting tab stops
- setTabStops
- addTabStop
- removeTabStop
- Setting other style information
- setParagraphStyle
- setAlignment
- setFirstLineHeadIndent
- setHeadIndent
- setTailIndent:
- setLineBreakMode
- setMaximumLineHeight
- setMinimumLineHeight
- setLineSpacing
- setParagraphSpacing
public NSMutableParagraphStyle()
public void addTabStop(NSTextTab tabStop)
See Also: removeTabStop, setTabStops, tabStops (NSParagraphStyle)
public void removeTabStop(NSTextTab tabStop)
See Also: addTabStop, setTabStops, tabStops (NSParagraphStyle)
public void setAlignment(int alignment)
NSText.LeftTextAlignment
NSText.RightTextAlignment
NSText.CenterTextAlignment
NSText.JustifiedTextAlignment
NSText.NaturalTextAlignment
See Also: alignment (NSParagraphStyle)
public void setFirstLineHeadIndent(float aFloat)
See Also: setHeadIndent, setTailIndent:, firstLineHeadIndent (NSParagraphStyle)
public void setHeadIndent(float aFloat)
See Also: setFirstLineHeadIndent, setTailIndent:, headIndent (NSParagraphStyle)
public void setLineBreakMode(int mode)
NSParagraphStyle.LineBreakByWordWrapping
NSParagraphStyle.LineBreakByCharWrapping
NSParagraphStyle.LineBreakByClipping
NSParagraphStyle.LineBreakByTruncatingHead
NSParagraphStyle.LineBreakByTruncatingTail
NSParagraphStyle.LineBreakByTruncatingMiddle
See the description of lineBreakMode in the NSParagraphStyle class specification for descriptions of these values.
public void setLineSpacing(float aFloat)
See Also: setMaximumLineHeight, setMinimumLineHeight, setParagraphSpacing, lineSpacing (NSParagraphStyle)
public 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)
public void setMinimumLineHeight(float aFloat)
See Also: setMaximumLineHeight, setLineSpacing, minimumLineHeight (NSParagraphStyle)
public void setParagraphSpacing(float aFloat)
See Also: setLineSpacing, paragraphSpacing (NSParagraphStyle)
public void setParagraphStyle(NSParagraphStyle aStyle)
public void setTabStops(NSArray tabStops)
See Also: addTabStop, removeTabStop, tabStops (NSParagraphStyle)
public 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)