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

# exclusionPaths

An array of path objects that represents the regions where text doesn’t display in the text container.

```
var exclusionPaths: [NSBezierPath] { get set }
```

## Discussion

The default value of this property is an empty array. Depending on the platform, you can assign an array of [`NSBezierPath`](/documentation/AppKit/NSBezierPath) or <doc://com.apple.documentation/documentation/UIKit/UIBezierPath> objects to exclude text from one or more regions in the text container’s bounds. When the layout manager proposes a line fragment rectangle intersecting one of the regions defined by the exclusion paths, the text container returns an adjusted line fragment rectangle excluding that region.

---

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)