Svetoslav,
That zip file does not work for me. Windows says it is invalid when attempting to open and that its empty when attempting to extract. Not sure what the issue is.
Anyhow, I think I did not describe the issue clearly enough. Yes I am able to get the selected text when the selection is one letter, however the issue is matching that selection to the bound data in the editor in order to make changes to it. For instance, let's say the following is the bound text:
"Lorem ipsum dolor."
If my selection was the last letter of the second word, I would get "m" as the result. I want to make the selections font red. If I try to find the selection in the document without knowing the actual index, it will return the last letter of the first word because it is the first instance of the selection (assuming the use of FirstOrDefault). Therefore, the wrong text will have the action done upon it.
What I am asking is if there is a way to get the index so that I don't have to rely only on string matching and hoping that there is only one instance of the selection in the text.
Thank you for the assistance.