Leadtools.Documents.UI Namespace > DocumentViewerFindText Object : GotoNextPage Property |
get_gotoNextPage();
set_gotoNextPage(value);
Object.defineProperty('gotoNextPage');
Type | Description |
---|---|
boolean | true to automatically search the next page when no more matches are found in the current; otherwise, false. Default value is true. |
When GotoNextPage is true (the default) and the search has exhausted the text in the current PageNumber, the engine will automatically advances to the next page (could be PageNumber + 1 or - 1 depending if find next or find pervious is being performed. When search reaches the end of the document (or beginning with find previous operation), the value of Recursive is checked, and it is true, then search will continue by cycling through the document pages till the original location is reached and no more matches found.
If a match is found, PageNumber will be updated with the number of page.
When GotoNextPage is false, then search is restricted in the current page only. When the search has exhausted the text, it will not go to the next page. If Recursive is true, then search will cycle through the text of the page till the original location is reached and no more matches found.
For an example, refer to Find.