selectAll Method

Summary

Selects all the text in the specified page or the whole document.

Syntax
TypeScript
JavaScript
DocumentViewerText.prototype.selectAll = function( 
   pageNumber 
) 
selectAll( 
   pageNumber: number 
): void; 

Parameters

pageNumber

Page number to use. If this value is 0, then the text of all pages in the document will be used.

Remarks

When this method returns, the new selected text (if any) can be obtained by GetSelectedTextItems (or GetSelectedText as a simple string).

This method fires Operation with DocumentViewerOperation.TextSelectionChanged and DocumentViewerOperation.PageTextSelectionChanged if the result of the operation changes the state of text selection.

If RenderSelection is true, then the selected text will be highlighted on the view ImageViewer object automatically.

If the text of any of the pages that is checked is not obtained yet, then the value of AutoGetText will be used to determine whether DocumentPage.GetText is called automatically. Therefore, this method might experience a delay while the text is parsed from the document in this mode.

Requirements

Target Platforms

Help Version 22.0.2023.4.18
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Viewer Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.