<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTypesetter/textContainers",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTypesetter(py)textContainers"
  },
  "title" : "textContainers"
}
-->

# textContainers

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

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

## 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

[`layoutManager`](/documentation/AppKit/NSTypesetter/layoutManager)

Returns the layout manager for the text being typeset.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)