---
title: textContainers
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstypesetter/textcontainers
---

# textContainers

Returns an array containing the text containers belonging to the current layout manager.

## Declaration

```swift
unowned(unsafe) var textContainers: NSArray? { get }
```

## Return Value

Return Value An array containing the text containers belonging to the current layout manager. This value is valid only while the typesetter is performing layout.

## See Also

### Related Documentation

- [layoutManager](appkit/nstypesetter/layoutmanager.md)

### Managing text containers

- [currentTextContainer](appkit/nstypesetter/currenttextcontainer.md)
- [lineFragmentPadding](appkit/nstypesetter/linefragmentpadding.md)
