ISpellChecker.GetSuggestions(String, CultureInfo) Method
Constructs an ordered list of suggestions for a given word.
Namespace: DevExpress.XtraSpellChecker
Assembly: DevExpress.Data.v24.2.dll
NuGet Package: DevExpress.Data
#Declaration
string[] GetSuggestions(
string word,
CultureInfo culture
)
#Parameters
Name | Type | Description |
---|---|---|
word | String | A System. |
culture | Culture |
A Culture |
#Returns
Type | Description |
---|---|
String[] | A Suggestion |
#Remarks
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.