---
title: NSTextParagraph
framework: uikit
role: symbol
role_heading: Class
path: uikit/nstextparagraph
---

# NSTextParagraph

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

## Declaration

```swift
class NSTextParagraph
```

## Topics

### Creating a paragraph

- [init(attributedString:)](uikit/nstextparagraph/init(attributedstring:).md)

### Getting paragraph characteristics

- [attributedString](uikit/nstextparagraph/attributedstring.md)
- [paragraphContentRange](uikit/nstextparagraph/paragraphcontentrange.md)
- [paragraphSeparatorRange](uikit/nstextparagraph/paragraphseparatorrange.md)

## Relationships

### Inherits From

- [NSTextElement](uikit/nstextelement.md)

### Inherited By

- [NSTextListElement](uikit/nstextlistelement.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Content elements

- [Enriching your text in text views](uikit/enriching-your-text-in-text-views.md)
- [NSTextListElement](uikit/nstextlistelement.md)
- [NSTextElement](uikit/nstextelement.md)
- [NSTextElementProvider](uikit/nstextelementprovider.md)
