Hi team,
I want to move my cursor to end of a run.
For example:
I have paragraph like below with one word like below
PARAGRAPHTEST
And I want to to move my cursor right at the end of this word. When I tried to use getNextSibling() , I am getting Null pointer exception. By the way, I am able to move to the start of the run, but my use case is to move the cursor to the end of it.
I tried pulling the paragraph index and used movetoParagraph(index,-1) to move the cursor to last position. However, I have a problem with that. If I extract the index , and use moveToParagraph() it moves to the wrong index as it takes index of the specific section and when I move , I understand it moves to the wrong index .
So, please suggest me a way to move the cursor to the end of a Run.
Thanks,
Prasanna