---
title: "textContentManager(_:shouldEnumerate:options:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextcontentmanagerdelegate/textcontentmanager(_:shouldenumerate:options:)"
---

# textContentManager(_:shouldEnumerate:options:)

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

## Declaration

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

## Parameters

- `textContentManager`: The content manager.
- `textElement`: The doc://com.apple.appkit/documentation/AppKit/NSTextElement to evaluate.
- `options`: One of the available NSTextElementProviderEnumerationOptions options.

## Return Value

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.
