---
title: cellSize
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscell/cellsize
---

# cellSize

The minimum size needed to display the cell.

## Declaration

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

## Discussion

Discussion This property contains the smallest cell size (in points) required to draw its contents. If the cell is not a text or image cell, the cell size is set to (10000, 10000). If an image cell does not yet have an associated image, the cell size is NSZeroSize.This method takes into account of the size of the image or text in the cell along with any margin areas required by the cell’s border, if any.

## See Also

### Determining Cell Size

- [calcDrawInfo(_:)](appkit/nscell/calcdrawinfo(_:).md)
- [cellSize(forBounds:)](appkit/nscell/cellsize(forbounds:).md)
- [drawingRect(forBounds:)](appkit/nscell/drawingrect(forbounds:).md)
- [imageRect(forBounds:)](appkit/nscell/imagerect(forbounds:).md)
- [titleRect(forBounds:)](appkit/nscell/titlerect(forbounds:).md)
- [controlSize](appkit/nscell/controlsize.md)
