I am converting a lot of some interface over from standard old RichTextBox to your SfRichTextBoxAdv, but I'm having an issue with a function.
I currently execute:
Point nMousePositionCoordinate = Mouse.GetPosition(contentRTB);
TextPointer cursorPosition = contentRTB.Document.GetPositionFromPoint(nMousePositionCoordinate, false);
string frontChunk = cursorPosition .GetTextInRun(LogicalDirection.Backward);
string frontChunk = cursorPosition .GetTextInRun(LogicalDirection.Forward);
I can't seem to find a way to get a HierarchalPosition to use contentRTBAdv.Document.GetTextPosition() or anything in that realm. Any help getting a position from mouse location or just the word under the mouse would be super helpful, thank you.