Mac Developer Library

Developer

AppKit Framework Reference NSMutableParagraphStyle Class Reference

Options
Deployment Target:

On This Page
Language:

NSMutableParagraphStyle

The NSMutableParagraphStyle class adds methods to its superclass, NSParagraphStyle, for changing the values of the subattributes in a paragraph style attribute. See the NSParagraphStyle and NSAttributedString specifications for more information.

  • The text blocks containing the paragraph, nested from outermost to innermost to array.

    Declaration

    Swift

    var textBlocks: [NSTextBlock]

    Objective-C

    @property(copy) NSArray <__kindof NSTextBlock *> *textBlocks

    Availability

    Available in OS X v10.10 and later.

  • The array of text lists containing the paragraph.

    Declaration

    Swift

    var textLists: [NSTextList]

    Objective-C

    @property(copy) NSArray <NSTextList *> *textLists

    Discussion

    The text lists containing the paragraph, nested from outermost to innermost, to array.

    Availability

    Available in OS X v10.10 and later.

  • The threshold for using tightening as an alternative to truncation.

    Declaration

    Swift

    var tighteningFactorForTruncation: Float

    Objective-C

    @property float tighteningFactorForTruncation

    Discussion

    When the line break mode specifies truncation, the text system attempts to tighten inter character spacing as an alternative to truncation, provided that the ratio of the text width to the line fragment width does not exceed 1.0 + the value of tighteningFactorForTruncation. Otherwise the text is truncated at a location determined by the line break mode. The default value is 0.05. This value can be a positive or negative value. Values less than or equal to 0.0 result in not tightening.

    Availability

    Available in OS X v10.10 and later.

    See Also

    tighteningFactorForTruncation (NSParagraphStyle)

  • Specifies whether the paragraph is to be treated as a header for purposes of HTML generation.

    Declaration

    Swift

    var headerLevel: Int

    Objective-C

    @property NSInteger headerLevel

    Discussion

    Value is 0 (the default value) if the paragraph is not a header, or from 1 through 6 if the paragraph is to be treated as a header

    Availability

    Available in OS X v10.10 and later.