---
title: "getRow(_:column:for:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsmatrix/getrow(_:column:for:)"
---

# getRow(_:column:for:)

Indicates whether the specified point lies within one of the cells of the matrix and returns the location of the cell within which the point lies.

## Declaration

```swift
func getRow(_ row: UnsafeMutablePointer<Int>, column col: UnsafeMutablePointer<Int>, for point: NSPoint) -> Bool
```

## Parameters

- `row`: On return, the row of the cell containing the specified point.
- `col`: On return, the column of the cell containing the specified point.
- `point`: The point to locate; this point should be in the coordinate system of the receiver.

## Return Value

Return Value true if the point lies within one of the cells in the receiver; false if the point falls outside the bounds of the receiver or lies within an intercell spacing.

## See Also

### Finding Matrix Coordinates

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