---
title: textLineFragments
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextlayoutfragment/textlinefragments
---

# textLineFragments

An array of text line fragments.

## Declaration

```swift
var textLineFragments: [NSTextLineFragment] { get }
```

## Discussion

Discussion Valid when NSTextLayoutFragment.State.layoutAvailable. This property is KVO-compliant.

## See Also

### Getting line fragments

- [NSTextLayoutFragment.EnumerationOptions](appkit/nstextlayoutfragment/enumerationoptions.md)
- [textLineFragment(for:isUpstreamAffinity:)](appkit/nstextlayoutfragment/textlinefragment(for:isupstreamaffinity:).md)
- [textLineFragment(forVerticalOffset:requiresExactMatch:)](appkit/nstextlayoutfragment/textlinefragment(forverticaloffset:requiresexactmatch:).md)
