---
title: isSimpleRectangularTextContainer
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextcontainer/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.

## Declaration

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

## Discussion

Discussion The value of this property is 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 false when the exclusionPaths property contains one or more items, when the maximumNumberOfLines property is not zero, or when you override the lineFragmentRect(forProposedRect:at:writingDirection:remaining:) method. Otherwise, the default value is true.

## See Also

### Constraining text layout

- [maximumNumberOfLines](appkit/nstextcontainer/maximumnumberoflines.md)
- [lineFragmentPadding](appkit/nstextcontainer/linefragmentpadding.md)
- [lineFragmentRect(forProposedRect:at:writingDirection:remaining:)](appkit/nstextcontainer/linefragmentrect(forproposedrect:at:writingdirection:remaining:).md)
