---
title: textContainers
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nslayoutmanager/textcontainers
---

# textContainers

The current text containers of the layout manager.

## Declaration

```swift
var textContainers: [NSTextContainer] { get }
```

## See Also

### Managing the text containers

- [addTextContainer(_:)](uikit/nslayoutmanager/addtextcontainer(_:).md)
- [insertTextContainer(_:at:)](uikit/nslayoutmanager/inserttextcontainer(_:at:).md)
- [removeTextContainer(at:)](uikit/nslayoutmanager/removetextcontainer(at:).md)
- [setTextContainer(_:forGlyphRange:)](uikit/nslayoutmanager/settextcontainer(_:forglyphrange:).md)
- [textContainerChangedGeometry(_:)](uikit/nslayoutmanager/textcontainerchangedgeometry(_:).md)
- [textContainerChangedTextView(_:)](appkit/nslayoutmanager/textcontainerchangedtextview(_:).md)
- [textContainer(forGlyphAt:effectiveRange:)](uikit/nslayoutmanager/textcontainer(forglyphat:effectiverange:).md)
- [textContainer(forGlyphAt:effectiveRange:withoutAdditionalLayout:)](uikit/nslayoutmanager/textcontainer(forglyphat:effectiverange:withoutadditionallayout:).md)
- [usedRect(for:)](uikit/nslayoutmanager/usedrect(for:).md)
