Where does WPF's RichTextBox editor get it's spell checking from?

自闭症网瘾萝莉.ら 提交于 2019-12-11 12:53:26

问题


Does it use Microsoft Word's spellchecker?

Thank you.


回答1:


No, they are not part of Microsoft Word. They are part of WPF. It would be an inconvenience to developers to have a feature dependent on a Microsoft Word installation. Instead, it uses an embedded dictionary.

WPF4 introduced functionality for custom dictionaries.




回答2:


You didn't mention what you need it for.

So here is a wild guess. You may want to check out: http://nhunspell.sourceforge.net/

NHunspell brings the spell checking, hyphenation and thesaurus to the Microsoft® .NET Framework. NHunspell is C# library and wraps native libraries for Hunspell, Hyphen and MyThes. One design goal of this library and wrapper is to keep the source code of the included libraries as unmodified as possible. New versions of the base libraries can therefore easily adopted to NHunspell. The integrated libraries are used in OpenOffice and they work with the dictionaries published on OpenOffice.org.



来源:https://stackoverflow.com/questions/4593754/where-does-wpfs-richtextbox-editor-get-its-spell-checking-from

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