<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/NSTextParagraph",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextParagraph"
  },
  "title" : "NSTextParagraph"
}
-->

# NSTextParagraph

A class that represents a single paragraph backed by an attributed string as the contents.

```
class NSTextParagraph
```

## Topics

### Creating a paragraph

[`init(attributedString:)`](/documentation/UIKit/NSTextParagraph/init(attributedString:))

Creates a new paragraph with the attributed string you provide.

### Getting paragraph characteristics

[`attributedString`](/documentation/UIKit/NSTextParagraph/attributedString)

Returns the source attributed string.

[`paragraphContentRange`](/documentation/UIKit/NSTextParagraph/paragraphContentRange)

Returns the range of the paragraph in the containing text’s attributed string.

[`paragraphSeparatorRange`](/documentation/UIKit/NSTextParagraph/paragraphSeparatorRange)

Returns the range of the paragraph separator in the containing text’s attributed string.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)