---
title: lineFragmentPadding
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextcontainer/linefragmentpadding
---

# lineFragmentPadding

The value for the text inset within line fragment rectangles.

## Declaration

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

## Discussion

Discussion The padding appears at the beginning and end of the line fragment rectangles. The layout manager uses this value to determine the layout width. The default value of this property is 5.0. Line fragment padding is not designed to express text margins. Instead, you should use insets on your text view, adjust the paragraph margin attributes, or change the position of the text view within its superview.

## See Also

### Constraining text layout

- [maximumNumberOfLines](appkit/nstextcontainer/maximumnumberoflines.md)
- [lineFragmentRect(forProposedRect:at:writingDirection:remaining:)](appkit/nstextcontainer/linefragmentrect(forproposedrect:at:writingdirection:remaining:).md)
- [isSimpleRectangularTextContainer](appkit/nstextcontainer/issimplerectangulartextcontainer.md)
