---
title: "cell(atRow:column:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsmatrix/cell(atrow:column:)"
---

# cell(atRow:column:)

Returns the cell at the specified row and column.

## Declaration

```swift
func cell(atRow row: Int, column col: Int) -> NSCell?
```

## Parameters

- `row`: The number of the row containing the cell to return.
- `col`: The number of the column containing the cell to return.

## Return Value

Return Value The NSCell object at the specified row and column location specified, or nil if either row or column is outside the bounds of the receiver.

## See Also

### Related Documentation

- [getRow(_:column:of:)](appkit/nsmatrix/getrow(_:column:of:).md)

### Finding Cells

- [selectedCells](appkit/nsmatrix/selectedcells.md)
- [selectedColumn](appkit/nsmatrix/selectedcolumn.md)
- [selectedRow](appkit/nsmatrix/selectedrow.md)
- [cell(withTag:)](appkit/nsmatrix/cell(withtag:).md)
- [cells](appkit/nsmatrix/cells.md)
