convert RTF to HTML from ComponentOne RichTextBox?

谁都会走 提交于 2019-12-02 15:29:11

问题


The section Read and Write Rich Text Format Documents of this online article of UWP edition of ComponentOne reads: you can use it to convert RTF to HTML and vice versa.

I went through their API document and did not find any code example of such functionality and could not figure out which method from their APIs to use.

Question: Could you please provide (or link to an online sample) for converting RTF to HTML from RichTextBox control of ComponentOne's UWP Edition? I'm using C# but VB code also be fine.


回答1:


ComponentOne you can use it to convert RTF to HTML and vice versa.

You could convert between HTML and RTF using the RtfFilter library. And you could also get the code sample with this link.

rtfBox.Text = new RtfFilter().ConvertFromDocument(richTextBox.Document);



来源:https://stackoverflow.com/questions/55201990/convert-rtf-to-html-from-componentone-richtextbox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!