---
title: bounds
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextattachment/bounds
---

# bounds

The layout bounds of the text attachment’s graphical representation in the text coordinate system.

## Declaration

```swift
var bounds: CGRect { get set }
```

## Discussion

Discussion The bounds rectangle origin is at the current glyph location on the text baseline. The default value is CGRectZero.

## See Also

### Defining the attachment’s contents

- [contents](appkit/nstextattachment/contents.md)
- [fileType](appkit/nstextattachment/filetype.md)
- [image](appkit/nstextattachment/image.md)
- [fileWrapper](appkit/nstextattachment/filewrapper.md)
- [allowsTextAttachmentView](appkit/nstextattachment/allowstextattachmentview.md)
- [usesTextAttachmentView](appkit/nstextattachment/usestextattachmentview.md)
- [lineLayoutPadding](appkit/nstextattachment/linelayoutpadding.md)
