Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Documents.UI Namespace > DocumentViewerText Class : GetSelectedTextItems Method |
public IList<DocumentViewerTextItem> GetSelectedTextItems( int pageNumber )
'Declaration
Public Function GetSelectedTextItems( _ ByVal pageNumber As Integer _ ) As IList(Of DocumentViewerTextItem)
'Usage
Dim instance As DocumentViewerText Dim pageNumber As Integer Dim value As IList(Of DocumentViewerTextItem) value = instance.GetSelectedTextItems(pageNumber)
public: IList<DocumentViewerTextItem^>^ GetSelectedTextItems( int pageNumber )
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.