Home » FAQ » WPF » RichTextBox » How to get the RichTextBox’s unformatted text?
You can get the unformatted text in the RichTextBox using this approach
RichTextBox rtb = richTextBox as RichTextBox; TextRange tr = new TextRange(rtb.Document.ContentStart, rtb.Document.ContentEnd);
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with