<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextContentManagerDelegate/textContentManager(_:shouldEnumerate:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSTextContentManagerDelegate(im)textContentManager:shouldEnumerateTextElement:options:"
  },
  "title" : "textContentManager(_:shouldEnumerate:options:)"
}
-->

# textContentManager(_:shouldEnumerate:options:)

Returns a Boolean value that indicates whether the framework should skip this text element in the enumeration.

```
optional func textContentManager(_ textContentManager: NSTextContentManager, shouldEnumerate textElement: NSTextElement, options: NSTextContentManager.EnumerationOptions = []) -> Bool
```

## Parameters

`textContentManager`

The content manager.

`textElement`

The [`NSTextElement`](/documentation/AppKit/NSTextElement) to evaluate.

`options`

One of the available `NSTextElementProviderEnumerationOptions` options.

## Return Value

A Boolean value that informs the framework to skip this `textElement`  in the enumeration. Returning `false` indicates `textElement` to be skipped; otherwise the element is included in the enumeration.

---

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)