Spell check in winforms

痞子三分冷 提交于 2019-11-28 11:08:05

问题


In my win forms C# app, I want to be able to add spell check functionality. But, I want to do it my own way, and NOT use any other components. All I need is just an online service where I can send a request or something and it tells me whether or not the word i sent was spelled correctly.

Preferred but not required: The ability for that online service to also send back suggestions.


回答1:


Personally, I wonder why you want only online access...what if you lose connection? Also, most online accesses come with restrictions.. which you might hit sooner than you think during debugging.

If you were to use WPF, I'd suggest using the SpellCheck Class.

Since you specified Windows.Forms, you might try the NetSpell library for offline access. You can also try and use Microsoft Word's spellchecker, but you might not have it installed on the machine (or use Linux & Mono)

If you persist on using online access, you can use Yahoo, as Giovanni Galbo says. It's been done in C# before.




回答2:


A quick google search turned up this:

Search Web Services: Spelling Suggestion

This is not c#/.NET specific. Its a simple REST service provided by Yahoo!. It looks like they do limit you to 5,000 queries per day for free and I'm not sure if Yahoo! lets you upgrade to a pay service.



来源:https://stackoverflow.com/questions/2713963/spell-check-in-winforms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!