---
title: "willHighlightFoundTextRange:inDocument:"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextsearching-53wjq/willhighlightfoundtextrange:indocument:"
---

# willHighlightFoundTextRange:inDocument:

Informs the searchable object when the highlighted search result is about to change.

## Declaration

```occ
- (void) willHighlightFoundTextRange:(UITextRange *) range inDocument:(UITextSearchDocumentIdentifier) document;
```

## Parameters

- `range`: The text range to highlight.
- `document`: A string that uniquely identifies the document containing the text range. Nil when searching a single document.

## See Also

### Displaying results

- [decorateFoundTextRange:inDocument:usingStyle:](uikit/uitextsearching-53wjq/decoratefoundtextrange:indocument:usingstyle:.md)
- [clearAllDecoratedFoundText](uikit/uitextsearching-53wjq/clearalldecoratedfoundtext.md)
- [scrollRangeToVisible:inDocument:](uikit/uitextsearching-53wjq/scrollrangetovisible:indocument:.md)
