TextRange a = new TextRange(richTextBox1.Document.ContentStart, richTextBox1.Document.ContentEnd); Message.show(a.Text);