how to change text in richtextbox wpf

Code Example - how to change text in richtextbox wpf

                
                        richTextBox1.Document.Blocks.Clear();
richTextBox1.Document.Blocks.Add(new Paragraph(new Run("Text")));