I'm writing a text editor using RTB (RichTextBox), and I would like to display the line and the offset of the caret on the status bar.
I can grab the line number using
RTB.GetLineFromCharIndex(RTB.SelectedIndex);
but I can't find how to find the offset in the line.

Any has a solution?