After getting the text in the RichTextBox I want to clear the text. How can I do that?
TextRange txt = new TextRange(richtxtSNotice.Document.ContentStart, richtxtSNotice.Document.ContentEnd); MessageBox.Show(txt.Text);
Use the following:
_richTextBox.Document.Blocks.Clear();
2.1m questions
2.1m answers
60 comments
57.0k users