RadRichTextBox allows you to export and import its content. This is useful in case you want to save the user's input into a data base and then load it from there, or if you want to save/load the content of RadRichTextBox to/from a file. To import and export you have to use a specific class that implements the IDocumentFormatProvider. You can find built-in classes, that implement this interface, for each of the supported formats. Currently RadRichTextBox can export and import the following formats:
XAML - to import/export XAML documents you have to use the XamlFormatProvider class.
DOCX - to import/export DOCX documents you have to use the DocxFormatProvider class.
HTML - to import/export HTML documents you have to use the HtmlFormatProvider class.
RTF- to import/export RTF documents you have to use the RtfFormatProvider class.
Plain text - to import/export plain text documents you have to use the TxtFormatProvider class.
PDF - to export documents to PDF you have to use the PdfFormatProvider class.
Each FormatProvider class is located in a separate assembly matching its name. For example, the XamlFormatProvider class is in the Telerik.Windows.Documents.FormatProviders.Xaml.dll assembly. The only exception is the TxtFormatProvider, which is included in Telerik.Windows.Documents.
RadRichTextBox's format providers can import/export a wide variety of features supported by the control. However, features which are not yet supported are stripped on import. Such examples are content controls like text boxes, check boxes, etc. which can be inserted in the document in some rich text editors such as Microsoft Word or can be included in the HTML.