<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSMatrix/cellFrame(atRow:column:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSMatrix(im)cellFrameAtRow:column:"
  },
  "title" : "cellFrame(atRow:column:)"
}
-->

# cellFrame(atRow:column:)

Returns the frame rectangle of the cell that would be drawn at the specified location.

```
func cellFrame(atRow row: Int, column col: Int) -> NSRect
```

## Parameters

`row`

The row of the cell.

`col`

The column of the cell.

## Return Value

The frame rectangle of the cell (whether or not the specified cell actually exists).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)