I am having a hard time understanding your question, so please excuse me if I am wrong in my assumptions.
In order to load HTML document in RadRichTextBox, you can use the HtmlFormatProvider
. You can find information regarding the format providers and how to use them here
. There are also different export/import settings
you can use to control the export/import process to some degree, but be aware that RadRichTextBox is not designed to be an HTML editor, and the purpose of the export is to preserve as much of the document properties as possible, rather than exporting HTML similar to the imported HTML.
If you wish to show the actual HTML code in the editor, you can try adding it to the document following the elements hierarchy
as the text of a Span element. Here
you can find an example of a document created at run-time. Please be alarmed that you would have to escape the code using the standard escape sequences as Span's Text
property is of type string
However, if neither of those scenarios fits your requirements, please send us some additional details on the matter, so we can be of more help.