Back to Devexpress

ISpellChecker.GetSuggestions(String, CultureInfo) Method

corelibraries-devexpress-dot-xtraspellchecker-dot-ispellchecker-dot-getsuggestions-x28-system-dot-string-system-dot-globalization-dot-cultureinfo-x29.md

latest2.4 KB
Original Source

ISpellChecker.GetSuggestions(String, CultureInfo) Method

Constructs an ordered list of suggestions for a given word.

Namespace : DevExpress.XtraSpellChecker

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
string[] GetSuggestions(
    string word,
    CultureInfo culture
)
vb
Function GetSuggestions(
    word As String,
    culture As CultureInfo
) As String()

Parameters

NameTypeDescription
wordString

A System.String representing a word for which the suggestions should be calculated.

| | culture | CultureInfo |

A CultureInfo object specifying the culture, ensuring that the proper dictionaries are loaded.

|

Returns

TypeDescription
String[]

A SuggestionCollection object representing a sorted list of suggested words.

|

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.

See Also

ISpellChecker Interface

ISpellChecker Members

DevExpress.XtraSpellChecker Namespace