这可能是一项艰巨的任务,但我想找到一个易于实现的拼写检查组件(我只需要对一个 TextBox 进行拼写检查)。我环顾四周,似乎找不到任何不需要花费很多钱或实施起来不太复杂的东西。我确实找到了 NHunspell 的包装,但由于某种原因无法让它实际显示拼写检查框。
ComponentOne 的拼写检查控制绝对出色,但当然,它的价格绝对是一大笔钱,因为你不能只购买那个组件,你必须购买整个套件。我发现的所有其他人似乎都是同样的方式。
我最喜欢 ComponentOne 版本,因为您所要做的就是引用它、初始化,并且当您调用它时,您只需告诉它要检查哪个控件即可。很可爱。
建议?
This may be a tall order, but I'd like to find a spellchecker component that is easy to implement (I only need to spell-check one TextBox). I've looked around and cannot seem to find anything that doesn't cost a fortune, or isn't overly complicated to implement. I did find a wrapper for NHunspell, but couldn't get it to actually display the spell-check box for whatever reason.
ComponentOne's spell-check control is absolutely excellent, but of course, costs an absolute fortune since you can't buy just that component, you have to buy the whole suite. All the other ones I've found seem to be the same way.
I liked the ComponentOne version the best because all you had to do way reference it, initialize, and when you called it you simply told it which control to check. It was lovely.
Suggestions?
发布评论
评论(2)
您应该查看 NetSpell,它非常容易实现。
链接到一个示例
http://www.codeproject.com/KB/string/netspell.aspx
You should check out NetSpell, very easy to implement.
Link to an example
http://www.codeproject.com/KB/string/netspell.aspx
如果您不能使用 wpf,并且可以接受手动完成一些工作,那么 SharpDevelop 文本编辑器是一个非常有趣的组件:http://wiki.sharpdevelop.net/Using%20the%20texteditor.ashx 它并不完全是一个拖放组件,但您可以使用某种语言服务将其扩展为提供您自己的拼写检查机制。该组件为您提供所有图形部分:曲线、突出显示等。而且是Winform(即使现在也有wpf版本)
If you can't use wpf, and you can accept do some work by hand, a very insteresting component is the SharpDevelop text editor: http://wiki.sharpdevelop.net/Using%20the%20texteditor.ashx it is not exactly a drag'drop component, but you can extend it with some sort of language service to provide your own spell check mechanism. The component offers to you all the graphic part: squiggles, highlighting and so on. And it is Winform (even if now there is a wpf version too)