Class

NSMutableParagraphStyle

An object that enables changing the values of the subattributes in a paragraph style attribute.

Declaration

@interface NSMutableParagraphStyle : NSParagraphStyle

Overview

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

Topics

Setting other style information

- setParagraphStyle:

Replaces the subattributes of the receiver with those in the specified paragraph style object.

alignment

The text alignment of the receiver.

firstLineHeadIndent

The indentation of the first line of the receiver.

headIndent

The indentation of the receiver’s lines other than the first.

tailIndent

The trailing indentation of the receiver.

lineBreakMode

The mode that should be used to break lines in the receiver.

maximumLineHeight

The receiver’s maximum line height.

minimumLineHeight

The receiver’s minimum height.

lineSpacing

The distance in points between the bottom of one line fragment and the top of the next.

paragraphSpacing

The space after the end of the paragraph.

paragraphSpacingBefore

The distance between the paragraph’s top and the beginning of its text content.

baseWritingDirection

The base writing direction for the receiver.

lineHeightMultiple

The line height multiple.

Accessing Tab Information

- addTabStop:

Adds tabStop to the receiver.

- removeTabStop:

Removes the first text tab whose location and type are equal to those of tabStop.

tabStops

An array of NSTextTab objects representing the receiver’s tab stops.

defaultTabInterval

The document-wide default tab interval.

Setting text blocks and lists

textBlocks

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

textLists

The array of text lists containing the paragraph.

Controlling hyphenation and truncation

hyphenationFactor

The paragraph’s threshold for hyphenation.

tighteningFactorForTruncation

The threshold for using tightening as an alternative to truncation.

allowsDefaultTighteningForTruncation

A Boolean value indicating whether the system may tighten inter-character spacing before truncating text.

Setting HTML header level

headerLevel

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

Relationships

Inherits From

See Also

Paragraphs

NSParagraphStyle

The paragraph or ruler attributes used by an attributed string.

NSTextTab

A tab in an NSParagraphStyle object, storing an alignment type and location.