SpellCheckerBase.GetSuggestions(String, CultureInfo) Method
Gets suggested words to replace a specified word.
public virtual SuggestionCollection GetSuggestions( string word, CultureInfo culture )
Public Overridable Function GetSuggestions( word As String, culture As CultureInfo ) As SuggestionCollection
A string that is the word for which corrections are suggested by the spellchecker.
A CultureInfo object specifying the culture, ensuring that the proper dictionaries are loaded.
A SuggestionCollection containing words from the dictionary that are suggested replacements.
This method creates new suggestions for the given word, using the dictionaries for the specified culture. The suggestion list is sorted, and items with a Levenshtein distance greater than the SpellCheckerBase.LevenshteinDistance property value are excluded from the list. A new SuggestionCollection object containing the remaining suggestions is the result returned by this method.
A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E1758.