public RadDocument ImportHtml(string content)
{
IDocumentFormatProvider provider = new HtmlFormatProvider();
RadDocument document;
using (MemoryStream stream = new MemoryStream())
{
StreamWriter writer = new StreamWriter(stream);
writer.Write(content);
writer.Flush();
stream.Seek(0, SeekOrigin.Begin);
document = provider.Import(stream);
}
return document;
}
And after ..
RadDocument rd = ImportXaml(reader.ReadToEnd());
rd.Selection.SelectAll();
richtextbox.SetText(" ");
richtextbox.SetText(rd.Selection.GetSelectedText());
For example :
this is my document
but the result is :
For example: this is my document.
:( i ll be hoping some soultion.... jeje sorry by my english