To find all occurrences of a search word in a PDF, I use
pdfSelectionArray = PDFView1.Document.FindString()
and when the user does a Find Again I use
pSelection = PDFView1.Document.FindStringFromSelection()
I’d like to locate the position of the second result in the initial array so the app can report the selected text is 1 of 10, 2 of 10, etc.
However, one can’t simply compare the PDFSelectionMBS objects. If I could get the PDFPage and starting location of the PDFSelectionMBS I could compare those, but I don’t see how that’s possible.
Is there a way to determine the position of a newly generated PDFSelectionMBS in an existing PDFSelectionMBS array?