<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSMatrix/cellSize",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSMatrix(py)cellSize"
  },
  "title" : "cellSize"
}
-->

# cellSize

The size of each cell in the matrix.

```
var cellSize: NSSize { get set }
```

## Discussion

This value corresponds to both the width and height of each cell, because all cells in an [`NSMatrix`](/documentation/AppKit/NSMatrix) are the same size.

---

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)