---
title: "knowsPageRange(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsview/knowspagerange(_:)"
---

# knowsPageRange(_:)

Returns a Boolean value that indicates whether the view handles page boundaries.

## Declaration

```swift
func knowsPageRange(_ range: NSRangePointer) -> Bool
```

## Parameters

- `range`: On return, holds the page range if doc://com.apple.documentation/documentation/Swift/true is returned directly. Page numbers are one-based—that is pages run from one to N.

## Return Value

Return Value true if the view handles page boundaries; otherwise, false.

## Discussion

Discussion Returns false if the view uses the default auto-pagination mechanism. The default implementation returns false. Override this method if your class handles page boundaries.

## See Also

### Handling Pagination

- [heightAdjustLimit](appkit/nsview/heightadjustlimit.md)
- [widthAdjustLimit](appkit/nsview/widthadjustlimit.md)
- [adjustPageWidthNew(_:left:right:limit:)](appkit/nsview/adjustpagewidthnew(_:left:right:limit:).md)
- [adjustPageHeightNew(_:top:bottom:limit:)](appkit/nsview/adjustpageheightnew(_:top:bottom:limit:).md)
- [rectForPage(_:)](appkit/nsview/rectforpage(_:).md)
- [locationOfPrintRect(_:)](appkit/nsview/locationofprintrect(_:).md)
