Answered
Accessing raw text of TextFlow and performing a search
I am trying to figure out the best way to perform a search
within a TextFlow to locate a specific piece of text (either a word
or set of words).
I have had a hard time figuring out how to actually gain access to the raw text of the TextFlow that is loaded. Once that is loaded, I need to be able to search through that text, find the location of the text, and show that container.
Essentially add search capability to the Pagination example.
The only thing I can think of that seems like it may work would be to export the TextFlow into an XML file, then perform the search on the XML file. Once that is done, I would have to figure out which position in the xml file the text was located, and load the container with that position....
Surely there is a better way?
Thanks, Tim
I have had a hard time figuring out how to actually gain access to the raw text of the TextFlow that is loaded. Once that is loaded, I need to be able to search through that text, find the location of the text, and show that container.
Essentially add search capability to the Pagination example.
The only thing I can think of that seems like it may work would be to export the TextFlow into an XML file, then perform the search on the XML file. Once that is done, I would have to figure out which position in the xml file the text was located, and load the container with that position....
Surely there is a better way?
Thanks, Tim
