---
title: textContainer
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nstextlayoutmanager/textcontainer
---

# textContainer

The text container object that provides geometric information for the layout destination.

## Declaration

```swift
var textContainer: NSTextContainer? { get set }
```

## See Also

### Accessing the text storage

- [textContentManager](uikit/nstextlayoutmanager/textcontentmanager.md)
- [textSelectionNavigation](uikit/nstextlayoutmanager/textselectionnavigation.md)
- [textSelections](uikit/nstextlayoutmanager/textselections.md)
- [usageBoundsForTextContainer](uikit/nstextlayoutmanager/usageboundsfortextcontainer.md)
- [enumerateTextSegments(in:type:options:using:)](uikit/nstextlayoutmanager/enumeratetextsegments(in:type:options:using:).md)
- [replace(_:)](uikit/nstextlayoutmanager/replace(_:).md)
- [replaceContents(in:with:)](uikit/nstextlayoutmanager/replacecontents(in:with:)-2elb.md)
- [replaceContents(in:with:)](uikit/nstextlayoutmanager/replacecontents(in:with:)-80j0b.md)
