---
title: usageBoundsForTextContainer
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nstextlayoutmanager/usageboundsfortextcontainer
---

# usageBoundsForTextContainer

Returns the usage bounds for the text container.

## Declaration

```swift
var usageBoundsForTextContainer: CGRect { get }
```

## Discussion

Discussion Views can observe this property to trigger a resize operation. For example, UIView or NSView call setNeedsUpdateConstraints() when the usage bounds changes. This property is KVO-compliant.

## See Also

### Accessing the text storage

- [textContentManager](uikit/nstextlayoutmanager/textcontentmanager.md)
- [textContainer](uikit/nstextlayoutmanager/textcontainer.md)
- [textSelectionNavigation](uikit/nstextlayoutmanager/textselectionnavigation.md)
- [textSelections](uikit/nstextlayoutmanager/textselections.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)
