Selects the text that intersect with a specified area.
selectText(
area: LeadRectD,
mode: DocumentViewerSelectTextMode
): void;
area
location and size of the area to check. This is in pixels and must be in control (client) coordinates, such as directly
from a mouse event.
mode
Mode to use for the selection.
This method selects text from all the pages that currently intersects with area. When this method returns, the new selected text (if any) can be obtained by GetSelectedTextItems (or GetSelectedText as a simple string).
clearSelection is an empty rectangle or if none of the text intersects with the rectangle.
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.
For an example, refer to DocumentViewerText.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document