How to add spell check in a richtextbox?

我的未来我决定 提交于 2019-12-11 14:32:58

问题


I want to add spell check to my richtextboxes in my application. How can i do that with built in classes in visual studio express 2010?


回答1:


Have you looked at this? System.Windows.Controls.SpellCheck

http://msdn.microsoft.com/en-us/library/system.windows.controls.spellcheck.aspx




回答2:


If you are working on WPF, you can use System.Windows.Controls.SpellCheck.

but if you using WinForms you can still use WPF spellcheck with some work.

check this SO question for more info.

Otherwise you need to use third party library.




回答3:


You Can Use Third Party Control (Infragistics) UltraSpellChecker. Its really easy to work with it.

this.ultraSpellChecker1.SetSpellCheckerSettings(this.txt_comment, new Infragistics.Win.UltraWinSpellChecker.SpellCheckerSettings(true));

where txt_comment is the richtextbox in which you want your spellings to be checked.



来源:https://stackoverflow.com/questions/10870737/how-to-add-spell-check-in-a-richtextbox

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