---
title: NSParagraphStyle
framework: appkit
role: symbol
role_heading: Class
path: appkit/nsparagraphstyle
---

# NSParagraphStyle

The paragraph or ruler attributes for an attributed string.

## Declaration

```swift
class NSParagraphStyle
```

## Overview

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

- [default](appkit/nsparagraphstyle/default.md)

### Accessing style information

- [alignment](appkit/nsparagraphstyle/alignment.md)
- [NSTextAlignment](appkit/nstextalignment.md)
- [firstLineHeadIndent](appkit/nsparagraphstyle/firstlineheadindent.md)
- [headIndent](appkit/nsparagraphstyle/headindent.md)
- [tailIndent](appkit/nsparagraphstyle/tailindent.md)
- [lineHeightMultiple](appkit/nsparagraphstyle/lineheightmultiple.md)
- [maximumLineHeight](appkit/nsparagraphstyle/maximumlineheight.md)
- [minimumLineHeight](appkit/nsparagraphstyle/minimumlineheight.md)
- [lineSpacing](appkit/nsparagraphstyle/linespacing.md)
- [paragraphSpacing](appkit/nsparagraphstyle/paragraphspacing.md)
- [paragraphSpacingBefore](appkit/nsparagraphstyle/paragraphspacingbefore.md)

### Accessing tab information

- [tabStops](appkit/nsparagraphstyle/tabstops.md)
- [NSParagraphStyle.TextTabType](appkit/nsparagraphstyle/texttabtype.md)
- [defaultTabInterval](appkit/nsparagraphstyle/defaulttabinterval.md)

### Getting text block and list information

- [textBlocks](appkit/nsparagraphstyle/textblocks.md)
- [textLists](appkit/nsparagraphstyle/textlists.md)

### Getting line-break information

- [lineBreakMode](appkit/nsparagraphstyle/linebreakmode.md)
- [NSLineBreakMode](appkit/nslinebreakmode.md)
- [lineBreakStrategy](appkit/nsparagraphstyle/linebreakstrategy-swift.property.md)
- [NSParagraphStyle.LineBreakStrategy](appkit/nsparagraphstyle/linebreakstrategy-swift.struct.md)
- [hyphenationFactor](appkit/nsparagraphstyle/hyphenationfactor.md)
- [usesDefaultHyphenation](appkit/nsparagraphstyle/usesdefaulthyphenation.md)
- [tighteningFactorForTruncation](appkit/nsparagraphstyle/tighteningfactorfortruncation.md)
- [allowsDefaultTighteningForTruncation](appkit/nsparagraphstyle/allowsdefaulttighteningfortruncation.md)

### Getting the html header level

- [headerLevel](appkit/nsparagraphstyle/headerlevel.md)

### Determining writing direction

- [defaultWritingDirection(forLanguage:)](appkit/nsparagraphstyle/defaultwritingdirection(forlanguage:).md)
- [baseWritingDirection](appkit/nsparagraphstyle/basewritingdirection.md)
- [NSWritingDirection](appkit/nswritingdirection.md)

### Initializers

- [init(coder:)](appkit/nsparagraphstyle/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [NSMutableParagraphStyle](appkit/nsmutableparagraphstyle.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSMutableCopying](foundation/nsmutablecopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Formatting and attributes

- [NSMutableParagraphStyle](appkit/nsmutableparagraphstyle.md)
- [NSTextTab](appkit/nstexttab.md)
- [NSTextList](appkit/nstextlist.md)
- [NSTextTable](appkit/nstexttable.md)
- [NSTextTableBlock](appkit/nstexttableblock.md)
- [NSTextBlock](appkit/nstextblock.md)
