---
title: "selectAll(_:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfview/selectall(_:)"
---

# selectAll(_:)

Selects all text in the document.

## Declaration

```swift
@IBAction func selectAll(_ sender: Any?)
```

## See Also

### Handling Selections

- [currentSelection](pdfkit/pdfview/currentselection.md)
- [setCurrentSelection(_:animate:)](pdfkit/pdfview/setcurrentselection(_:animate:).md)
- [clearSelection()](pdfkit/pdfview/clearselection().md)
- [copy(_:)](pdfkit/pdfview/copy(_:).md)
- [scrollSelectionToVisible(_:)](pdfkit/pdfview/scrollselectiontovisible(_:).md)
- [highlightedSelections](pdfkit/pdfview/highlightedselections.md)
