渲染 HTML 的最佳控件
我需要渲染一些 html 文本(不是带有 和
标记的 html 页面以及所有内容,只是一些
C# .NET 4.0 Winforms 应用程序中的 ;
和
等)。最好是一个类似 Panel
的控件,您只需 p.HTML = "somehtml"
即可显示 HTML。有没有人有过可以推荐的 .NET HTML 渲染控件的经验?我在 codeproject 上发现了 this 但我对上面的东西有点警惕那里。
I have the need to render some html text (not an html page with <html>
and <body>
tags and everything, just some <i>
's and <hr />
s and stuff) in a C# .NET 4.0 Winforms application. Preferably it would be a Panel
-like control that you could just p.HTML = "somehtml"
on and it would display HTML. Has anyone had any experience with .NET HTML rendering controls that they could recommend? I found this on codeproject but I'm a little wary of stuff on there.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为什么不使用
WebBrowser
控件中的构建。您始终可以将 html 片段包含在标准标记中。
Why not use the build in
WebBrowser
control. You can always enclose your html snippet in standard<html/>
markup.您可以尝试这个链接
You can try this one link