Wednesday, 18 September 2013

Getting Selection Start Index and Length from WPF RichTextBox

Getting Selection Start Index and Length from WPF RichTextBox

I've looked around and can find plenty of articles for how to set the
selection on RichTextBoxes but nothing on how to get the start index and
length of the selection. I see the TextSelection class has Start and End
properties but I have no idea how to just get the clear text index from
these.

No comments:

Post a Comment