---
title: "paragraphRange(for:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/stringprotocol/paragraphrange(for:)"
---

# paragraphRange(for:)

Returns the range of characters representing the paragraph or paragraphs containing a given range.

## Declaration

```swift
func paragraphRange(for range: some RangeExpression<String.Index>) -> Range<Self.Index>
```
