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

# usageBoundsForTextContainer

Returns the usage bounds for the text container.

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

## Discussion

Views can observe this property to trigger a resize operation. For example, `NSView` calls [`needsUpdateConstraints`](/documentation/AppKit/NSView/needsUpdateConstraints) when the usage bounds changes. This property is KVO-compliant.

---

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)