Contents

NSParagraphStyle

The paragraph or ruler attributes for an attributed string.

Declaration

class NSParagraphStyle

Overview

An NSParagraphStyle object stores formatting information for a paragraph of text. The formatting information includes the amount of space between lines, indentations for lines of text, line heights, tab-stop positions, and more. Apply paragraph styles to the text of an attributed string by adding the paragraphStyle attribute and setting its value to an instance of this class. The text-rendering system uses the paragraph style information in an attributed string to lay out and render the text.

The NSParagraphStyle class manages an immutable set of style information, but you can create an NSMutableParagraphStyle when you want to modify the style information before applying it to your text.

Topics

Creating a paragraph style

Accessing style information

Accessing tab information

Getting text block and list information

Getting line-break information

Getting the html header level

Determining writing direction

Initializers

See Also

Formatting and attributes