C
carlmanaster
Hi,
I needed this for my current project and thought it might be useful to
someone else. It's a simple Disposable class that preserves a
RichTextBox's selection, used like this:
// using (new SteadySelection(rtb))
// {
// rtb.SelectAll();
// rtb.SelectionColor = Color.Red;
// }
Because I know how mangled indentation becomes in newsgroups, I pasted
it here:
http://rafb.net/paste/results/icViTc91.html
Enjoy,
--Carl
I needed this for my current project and thought it might be useful to
someone else. It's a simple Disposable class that preserves a
RichTextBox's selection, used like this:
// using (new SteadySelection(rtb))
// {
// rtb.SelectAll();
// rtb.SelectionColor = Color.Red;
// }
Because I know how mangled indentation becomes in newsgroups, I pasted
it here:
http://rafb.net/paste/results/icViTc91.html
Enjoy,
--Carl