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

# lineLayoutPadding

The layout padding before and after the text attachment bounds.

## Declaration

```swift
var lineLayoutPadding: CGFloat { get set }
```

## Discussion

Discussion The layout and rendering bounds X origin is inset by the padding value. This affects the relationship between the text attachment bounds and NSLayoutManager glyph metrics methods location(forGlyphAt:) and attachmentSize(forGlyphAt:). The default value is 0.0.

## See Also

### Defining the attachment’s contents

- [bounds](appkit/nstextattachment/bounds.md)
- [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)
