---
title: cellSize()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nstextattachmentcellprotocol/cellsize()
---

# cellSize()

Returns the size of the attachment’s icon.

## Declaration

```swift
nonisolated func cellSize() -> NSSize
```

## See Also

### Related Documentation

- [icon](foundation/filewrapper/icon.md)
- [fileWrapper](appkit/nstextattachment/filewrapper.md)

### Providing the cell metrics

- [cellBaselineOffset()](appkit/nstextattachmentcellprotocol/cellbaselineoffset().md)
- [cellFrame(for:proposedLineFragment:glyphPosition:characterIndex:)](appkit/nstextattachmentcellprotocol/cellframe(for:proposedlinefragment:glyphposition:characterindex:).md)
