---
title: pageRange
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsprintoperation/pagerange
---

# pageRange

The range of pages associated with the print operation.

## Declaration

```swift
var pageRange: NSRange { get }
```

## Return Value

Return Value The range of page numbers. Page numbers are one-based values where the index of page one is 1, the index of page two is 2, and so on. Depending on the information returned by the printing view, the starting page number may not be 1.  Also, if the number of pages being printed is not known, the page count may be set to NSIntegerMax.

## See Also

### Related Documentation

- [knowsPageRange(_:)](appkit/nsview/knowspagerange(_:).md)

### Managing Page Information

- [currentPage](appkit/nsprintoperation/currentpage.md)
- [pageOrder](appkit/nsprintoperation/pageorder-swift.property.md)
- [NSPrintOperation.PageOrder](appkit/nsprintoperation/pageorder-swift.enum.md)
