I'm trying to let the user make selections in the SfRichTextBoxAdv and save these selections (text ranges) to a collection. The thing is i also want the text ranges to update their start/end positions when text is added or deleted before them. i.e: If text is added before the text range and pushes it forward, then the start/end indexes need to be incremented accordingly.
In the regular WPF RichTextBox i was able to do this using TextRange. With TextRange, i can save the selected text as a TextRange variable. Then if some text is added before the TextRange and pushes it forward in the document, the start and end TextPointer properties change accordingly.
With SfRichTextBoxAdv, when i save the selected text as a SelectionAdv variable, the variable updates every time the cursor moves in the document to the current cursor location (current selection). So i can't even store the selection in a variable, because it changes all the time as the cursor moves in the document. I tried storing the selection using the two TextPosition variables:
var start = richTextBoxAdv.Selection.Start;
var end = richTextBoxAdv.Selection.End;
But they still update themselves when the cursor moves just like SelectionAdv.