---
title: state
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextlayoutfragment/state-swift.property
---

# state

The layout information state.

## Declaration

```swift
var state: NSTextLayoutFragment.State { get }
```

## Discussion

Discussion This property is KVO-compliant.

## See Also

### Getting element information

- [NSTextLayoutFragment.State](appkit/nstextlayoutfragment/state-swift.enum.md)
- [rangeInElement](appkit/nstextlayoutfragment/rangeinelement.md)
- [textElement](appkit/nstextlayoutfragment/textelement.md)
