---
title: selectedRow
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsmatrix/selectedrow
---

# selectedRow

The row number of the selected cell.

## Declaration

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

## Discussion

Discussion When the value of this property is –1, no cells are selected. If cells in multiple rows are selected, the value of this property is the number of the last row containing a selected cell.

## See Also

### Finding Cells

- [selectedCells](appkit/nsmatrix/selectedcells.md)
- [selectedColumn](appkit/nsmatrix/selectedcolumn.md)
- [cell(atRow:column:)](appkit/nsmatrix/cell(atrow:column:).md)
- [cell(withTag:)](appkit/nsmatrix/cell(withtag:).md)
- [cells](appkit/nsmatrix/cells.md)
