---
title: highlightedIndex
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsscrubber/highlightedindex
---

# highlightedIndex

The index of the highlighted item in the scrubber.

## Declaration

```swift
var highlightedIndex: Int { get }
```

## Discussion

Discussion If no item is highlighted, the value of this property is -1.

## See Also

### Getting the state of the scrubber

- [numberOfItems](appkit/nsscrubber/numberofitems.md)
- [selectedIndex](appkit/nsscrubber/selectedindex.md)
