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

# textContainerOrigin

The origin of the receiver’s text container.

```
var textContainerOrigin: NSPoint { get }
```

## Discussion

Calculated from the receiver’s bounds rectangle, container inset, and the container’s used rect.

## See Also

[`-  usedRectForTextContainer:`](/documentation/AppKit/NSLayoutManager/usedRect(for:))

Returns the bounding rectangle for the glyphs in the specified text container.



---

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)