一个好的HTML功能丰富的richedit替代winforms? [英] A good html capable richedit replacement for winforms?

查看:202
本文介绍了一个好的HTML功能丰富的richedit替代winforms?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以推荐用HTML替代Winforms(C#)Richedit控件吗?

Can anyone recommend a html replacement for a winforms (c#) richedit control?

我想要像Richedit控件中的构建这样的控件,该控件仅使用HTML而不是rtf来存储文本。我不希望它编辑HTML,只是要向编辑器提供将结果存储在html中的图像和样式化的文本。

I would like a control like the build in richedit control, that just use HTML instead of rtf to store the text. I don't want it to edit HTML, just to present a editor with images and styled text that store the result in html.

我希望使用自由控件,但是如果没有良好的控制,则也可以接受商业控制。

I would prefer a free control, but if there aren't any good control a commercial control would be acceptable too.

Martin

推荐答案

如果可以选择使用WPF控件,请查看以下控件: http://wpfricheditorlibrary.codeplex .com /

If a WPF control is an option, look at this control: http://wpfricheditorlibrary.codeplex.com/

有一个出色的开源库,可将RTF转换为HTML ...您可以将其与内置的richedit控件结合使用,或使用众多扩展控件之一来实现您的目标。您只需要将两者连接在一起,这并不难。

There is an excellent open-source library for converting RTF to HTML... you could couple this with either the built-in richedit control, or use one of the many extended controls to achieve your goal. You'd just need to wire the two together, which isn't that hard.

RTF到HTML库: http://www.codeproject.com/KB/recipes/RtfConverter.aspx

The RTF to HTML library: http://www.codeproject.com/KB/recipes/RtfConverter.aspx

几个扩展的RTF控件:

A couple of the extended RTF controls:

http://www.c-sharpcorner.com/uploadfile/scottlysle/wordprocessor02042007234628pm/wordprocessor.aspx

http://www.codeproject.com/KB/edit/WinFormsCodeBox.aspx

HTH〜James

HTH ~ James

这篇关于一个好的HTML功能丰富的richedit替代winforms?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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