---
title: "decorateFoundTextRange:inDocument:usingStyle:"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextsearching-53wjq/decoratefoundtextrange:indocument:usingstyle:"
---

# decorateFoundTextRange:inDocument:usingStyle:

Applies the style to a specific text range to indicate found and highlighted results.

## Declaration

```occ
- (void) decorateFoundTextRange:(UITextRange *) range inDocument:(UITextSearchDocumentIdentifier) document usingStyle:(UITextSearchFoundTextStyle) style;
```

## Parameters

- `range`: The text range to decorate.
- `document`: A string that uniquely identifies the document containing the text range. Nil when searching a single document.
- `style`: The style to decorate the text: highlighted, found, or normal.

## Discussion

Discussion The system calls this method during a find session to display the results of a search in your custom view. Your implenentation should decorate matching text ranges for the given style to indicate the found and highlighted result.

## See Also

### Displaying results

- [clearAllDecoratedFoundText](uikit/uitextsearching-53wjq/clearalldecoratedfoundtext.md)
- [willHighlightFoundTextRange:inDocument:](uikit/uitextsearching-53wjq/willhighlightfoundtextrange:indocument:.md)
- [scrollRangeToVisible:inDocument:](uikit/uitextsearching-53wjq/scrollrangetovisible:indocument:.md)
