C# .NET 拼写检查控件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/253064/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
.NET Spell Check control?
提问by Adam Haile
Are there any libraries out there (preferably a self contained Text Edit Control) for .NET that have Spell Check capabilities. I would like to add the typical red underline to miss-spelled words in the edit area of my application.
是否有任何具有拼写检查功能的 .NET 库(最好是自包含的文本编辑控件)。我想在我的应用程序的编辑区域中为拼写错误的单词添加典型的红色下划线。
Edit: To clarify, this is for WinForms
编辑:澄清一下,这是针对 WinForms
采纳答案by gimel
Not a redlining control, but: Aspell.Netis a Free and Open Source .Net spell checking component. Based on the GNU Aspell project, Aspell.Net is one of the most powerful multi-lingual spelling engines available. The API is written in C# and communicates through a C++ wrapper around the Win32 Port of Aspell's C API.
不是redlining控件,而是:Aspell.Net是一个免费和开源的 .Net 拼写检查组件。Aspell.Net 基于 GNU Aspell 项目,是最强大的多语言拼写引擎之一。API 是用 C# 编写的,并通过围绕 Aspell 的 C API 的 Win32 端口的 C++ 包装器进行通信。
Source repository at sourceforge, checked February 2010 (Tahnks, @magnifico).
sourceforge 的源代码库,2010 年 2 月检查(Tahnks,@magnifico)。
May 2012, source no longer accessible... sorry.
2012 年 5 月,来源不再可用......抱歉。
回答by John Lemp
回答by Rune Grimstad
Infragisticshas a spell checker controlthat can do spell checking on any control. I haven't used it myself, but you can download a trial version for free.
Infragistics有一个拼写检查控件,可以对任何控件进行拼写检查。我自己没有使用过,但您可以免费下载试用版。
回答by Vinblad
FCKEditor is a nice text editor (web based). It has spellchecking capabilities.
FCKEditor 是一个不错的文本编辑器(基于网络)。它具有拼写检查功能。
回答by John
回答by gimel
RapidSpell worked great for me http://keyoti.com
RapidSpell 对我很有用http://keyoti.com
回答by Jim Counts
Aspell.Net looks nice, but does not seem to be maintained anymore. I could not get it to work on my machine.
Aspell.Net 看起来不错,但似乎不再维护。我无法让它在我的机器上工作。
After searching around SourceForge, I found NHunspell, which is a .Net port of the spell checker from OpenOffice.org. It provides methods to spell check, find synonyms, and hyphenate. Its actively maintained at this time, and comes with easy to understand sample code.
在搜索 SourceForge 之后,我找到了NHunspell,它是 OpenOffice.org 拼写检查器的 .Net 端口。它提供了拼写检查、查找同义词和连字符的方法。它此时正在积极维护,并带有易于理解的示例代码。
In the project's own words:
用项目自己的话来说:
Spell Checker, Hypenation and Thesaurus: NHunspell
NHunspell is a free open source spell checker for the .NET Framework. C# and Visual Basic sample code is available for spell checking, hyphenation and synonym lookup via thesaurus.
NHunspell is based on Hunspell and brings the Open Office spell checking, hyphenation and thesaurus to the Microsoft? .NET Framework. NHunspell is a .NET (C#, VB) library and wraps the native libraries Hunspell, Hyphen and MyThes.
The integrated libraries are used in OpenOffice and work with the dictionaries published on OpenOffice.org. License
NHunspell is licensed under: GPL/LGPL/MPL. Free use in commercial applications is permitted according to the LGPL and MPL licenses. Your commercial application can link against the NHunspell DLLs.
拼写检查器、连字符和同义词库:NHunspell
NHunspell 是 .NET Framework 的免费开源拼写检查器。C# 和 Visual Basic 示例代码可用于通过同义词库进行拼写检查、断字和同义词查找。
NHunspell 基于 Hunspell 并将 Open Office 拼写检查、断字和同义词库引入 Microsoft? .NET 框架。NHunspell 是一个 .NET(C#、VB)库,并封装了本地库 Hunspell、Hyphen 和 MyThes。
集成库在 OpenOffice 中使用,并与 OpenOffice.org 上发布的词典一起使用。执照
NHunspell 获得许可:GPL/LGPL/MPL。根据 LGPL 和 MPL 许可,允许在商业应用中免费使用。您的商业应用程序可以链接到 NHunspell DLL。
回答by Michael
NHunspellTextBoxExtender, created by William Winner works. Once added to your project, can be used to extend textboxes and rich textboxes (any control that inherits TextBoxBase). Source code is included as well.
NHunspellTextBoxExtender,由William Winner 作品创建。添加到您的项目后,可用于扩展文本框和富文本框(任何继承 TextBoxBase 的控件)。源代码也包括在内。
http://www.codeproject.com/KB/recipes/NHunspellExtenderProvider.aspx
http://www.codeproject.com/KB/recipes/NHunspellExtenderProvider.aspx