Save and Load RichTextBox content in WPF
The content of RichTextBox can be saved to a file (or any other stream) using TextRange class. It supports following four formats: System.Windows.DataFormats.Text : This saves the plain text in the content of RichTextBox excluding the formatting information and the images. System.Windows.DataFormats.Rtf : This saves the content in RTF format preserving formating information and images.…