---
title: range
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsattributedstring/textlayoutsectionkey/range
---

# range

The character range.

## Declaration

```swift
static let range: NSAttributedString.TextLayoutSectionKey
```

## Discussion

Discussion An NSValue object containing an NSRange representing a character range. The default value is a range covering the entire string.

## See Also

### Getting keys for text layouts

- [orientation](foundation/nsattributedstring/textlayoutsectionkey/orientation.md)
