c# - Programatically Select RichTextBox Element For Copy/Paste/Delete/Edit -
say i've got wpf richtextbox
layed out following rich text:
<rtf> <paragraph> <run>foo(</run <bold> <run>int a</run> </bold> <run>, </run> <bold> <run>int b</run> </bold> <run>)</run> <paragraph> </rtf>
so looks foo(int a, int b). how go selecting text 'int a' portion via c#?
Comments
Post a Comment