---
title: usageBoundsForTextContainer
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/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, NSView calls needsUpdateConstraints when the usage bounds changes. This property is KVO-compliant.

## See Also

### Accessing the text storage

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