从 ComponentOne RichTextBox 将 RTF 转换为 HTML?

convert RTF to HTML from ComponentOne RichTextBox?

this ComponentOne 的 UWP 版在线文章的第 Read and Write Rich Text Format Documents 部分内容如下:you can use it to convert RTF to HTML and vice versa.

我浏览了他们的 API document,但没有找到此类功能的任何代码示例,也无法从他们的 API 中找出要使用的方法。

问题:能否请您提供(或link在线示例)从ComponentOne的UWP版本的RichTextBox控件将RTF转换为HTML?我正在使用 C#,但 VB 代码也可以。

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

您可以使用 RtfFilter library. And you could also get the code sample with this link 在 HTML 和 RTF 之间转换。

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