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

# scrollRangeToVisible:inDocument:

Scrolls to the containing view to make the text range visible.

## Declaration

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

## Parameters

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

## Discussion

Discussion If the seachable object supports scrolling, use this method to implement scrolling your view to make the highlighted text range visible.

## See Also

### Displaying results

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