从 ComponentOne RichTextBox 将 RTF 转换为 HTML? [英] convert RTF to HTML from ComponentOne RichTextBox?

查看:57
本文介绍了从 ComponentOne RichTextBox 将 RTF 转换为 HTML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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.

解决方案

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);

这篇关于从 ComponentOne RichTextBox 将 RTF 转换为 HTML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆