public IList<DocumentViewerTextItem> GetSelectedTextItems(
int pageNumber
)
Public Function GetSelectedTextItems(
ByVal pageNumber As Integer
) As System.Collections.Generic.IList(Of Leadtools.Document.Viewer.DocumentViewerTextItem)
public:
System::Collections::Generic::IList<Leadtools::Documents::UI::DocumentViewerTextItem^>^ GetSelectedTextItems(
int pageNumber
)
pageNumber
Page number to use. This value cannot be 0.
An array of the currently selected text items of the page, or null if the page does not have any selected text.
DocumentViewerText stores the state of the current text selection internally. Use GetSelectedText to obtain the selected text as a simple string object and GetSelectedTextItems to obtain this value as an array of DocumentViewerTextItem that contains information on the character range of the selection in the corresponding DocumentPageText and the total boundary of the selection in document units.
When RenderSelection is true, DocumentViewerView calls GetSelectedTextItems to highlight the selected text on the ImageViewer object.
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