Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Create a selection from startIndex, endIndex

More
IP: 192.168.0.71 8 years 9 months ago #12432 by doubleeye
Currently we create a new selection using top,left, bottom, right coordinates.

Is there a way I can use the character startIndex and character endIndex to create a selection?
More
IP: 192.168.0.71 8 years 9 months ago #12436 by nermeen
If you have the start and end index in PDF coordinates, you can create selection as the following:
Code:
VSel m_sel = new VSel(m_doc.GetPage(pageno)); m_sel.SetSel( start.x, start.y, end.x, end.y); .....
You can take as example the selection behavior in the demo project, check PDFLayoutView.onTouchSelect, PDFLayoutView.onDrawSelect
Time to create page: 0.423 seconds
Powered by Kunena Forum