---
title: cellBaselineOffset()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nstextattachmentcellprotocol/cellbaselineoffset()
---

# cellBaselineOffset()

Returns the text position where you draw the attachment cell’s image, relative to the current point established in the glyph layout.

## Declaration

```swift
nonisolated func cellBaselineOffset() -> NSPoint
```

## Discussion

Discussion The image should be drawn so its lower-left corner lies on this point.

## See Also

### Related Documentation

- [icon](foundation/filewrapper/icon.md)

### Providing the cell metrics

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