---
title: "setParagraphStyle(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsmutableparagraphstyle/setparagraphstyle(_:)"
---

# setParagraphStyle(_:)

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

## Declaration

```swift
func setParagraphStyle(_ obj: NSParagraphStyle)
```

## See Also

### Setting style information

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