Selected text of a page as a list of DocumentViewerTextItem.
public System.Collections.Generic.IList<Leadtools.Documents.UI.DocumentViewerTextItem> GetSelectedTextItems(
int pageNumber
)
Public Function GetSelectedTextItems(
ByVal pageNumber As Integer
) As System.Collections.Generic.IList(Of Leadtools.Documents.UI.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.
![]() |
Products |
Support |
Feedback: GetSelectedTextItems Method (DocumentViewerText) - Leadtools.Documents.UI |
Introduction |
Help Version 19.0.2017.3.21
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.