"none" <no**@none.comskrev i meddelandet
news:ea**************@TK2MSFTNGP03.phx.gbl...
AllUse richtextbox selection properties. Like richTextBox.SelectedText or
I was wondering if someone could point me to a simple step-by-step C#
example of accessing selected text within a richTextBox... The
functionality
I'm looking for is ultimately the kind you get with a toolbar shortcut
(ie:
bold selected text) but I'm so new to .Net, I can't figure out how to
reference a selection of text within the richTextBox.
Any help on this matter would be greatly appreciated. Thanks in
advance. -
CES
SelectedRtf if you would like to keep the rtf formatting,
SelectionColor, SelectionBackColor, SelectionFont and so on.
e.g. string str = richtextBox1.SelectedText;