---
title: highlightedSelections
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfview/highlightedselections
---

# highlightedSelections

Returns the array of selections that are highlighted using setHighlightedSelections.

## Declaration

```swift
var highlightedSelections: [PDFSelection]? { get set }
```

## See Also

### Handling Selections

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