---
title: documentRange
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextselectiondatasource/documentrange
---

# documentRange

Returns the starting and ending locations for the document.

## Declaration

```swift
var documentRange: NSTextRange { get }
```
