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

# isSimpleRectangularTextContainer

A Boolean that indicates whether the text container’s region is a rectangle with no holes or gaps, and whose edges are parallel to the text view’s coordinate system axes.

```
var isSimpleRectangularTextContainer: Bool { get }
```

## Discussion

The value of this property is <doc://com.apple.documentation/documentation/Swift/true> when the text container’s region is a rectangle with no holes or gaps and the edges are parallel to the text view’s coordinate system axes. The default value of this property is <doc://com.apple.documentation/documentation/Swift/false> when the [`exclusionPaths`](/documentation/AppKit/NSTextContainer/exclusionPaths) property contains one or more items, when the [`maximumNumberOfLines`](/documentation/AppKit/NSTextContainer/maximumNumberOfLines) property is not zero, or when you override the [`lineFragmentRect(forProposedRect:at:writingDirection:remaining:)`](/documentation/AppKit/NSTextContainer/lineFragmentRect(forProposedRect:at:writingDirection:remaining:)) method. Otherwise, the default value is <doc://com.apple.documentation/documentation/Swift/true>.

---

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)