use*_*347 3 html c# rtf winforms
也许有人可以帮助我解决以下问题.我有一个丰富的文本框控件:RichTxtDescription.我填写的文字如下:
String _description = “Some text with rft tags like \\ine , \b, \b01 etc.”;
RichTxtDescription.Rft = @"{\rtf1\ansi " + _Description + "\\line \\line Query: \\line .}";
Run Code Online (Sandbox Code Playgroud)
在我的winform应用程序中,richtextbox控件按原样填充(带有新行,粗体等的文本).现在,我想将richTxtDescription.Rft转换为html标签,以便在rtf字段上显示它只接受html标签.
有什么建议?
谢谢!
我昨天使用了这个RTF转换器 :)我很高兴.
添加对项目的引用,并使用以下代码段作为起点.
IRtfDocument rtfDocument = RtfInterpreterTool.BuildDoc(yourRtfVariable);
RtfHtmlConverter htmlConverter = new RtfHtmlConverter(rtfDocument);
string html = htmlConverter.Convert();
| 归档时间: |
|
| 查看次数: |
4433 次 |
| 最近记录: |