TXTextControl.Proofing.TXSpell.CreateSuggestions Method

Determines suggestions for a specific incorrect word by using selected dictionaries of the DictionaryCollection at TXSpell.Dictionaries and fills the results into the SuggestionCollection at TXSpell.Suggestions. If no maximum number of suggestions is set, all created suggestions are added into TXSpell.Suggestions. Otherwise, only the first maximum number of suggestions are determined. The second and fourth implementation uses selected dictionaries of the TXSpell.Dictionaries DictionaryCollection and the default dictionary folder where the dictionary's language equals to the defined language parameter. Only those dictionaries are used where the Dictionary.IsGetSuggestionsEnabled property is set to true.

CreateSuggestions(String)

Determines suggestions for a specific incorrect word.

[C#]
public void CreateSuggestions(string incorrectWord);
[Visual Basic]
Public Sub CreateSuggestions(incorrectWord As String)
Parameter Description
incorrectWord

Specifies the incorrect word that has to be determined for suggestions.

CreateSuggestions(String, CultureInfo)

Determines suggestions for a specific incorrect word using selected dictionaries of the TXSpell.Dictionaries DictionaryCollection and the default dictionary folder where the dictionary's language equals to the defined language parameter.

[C#]
public void CreateSuggestions(string incorrectWord, System.Globalization.CultureInfo language);
[Visual Basic]
Public Sub CreateSuggestions(incorrectWord As String, language As System.Globalization.CultureInfo)
Parameter Description
incorrectWord

Specifies the incorrect word that has to be determined for suggestions.

language

The language that is used to create suggestions for the specified incorrect word.

CreateSuggestions(String, Int32)

Determines a maximum number of suggestions for a specific incorrect word.

[C#]
public void CreateSuggestions(string incorrectWord, int max);
[Visual Basic]
Public Sub CreateSuggestions(incorrectWord As String, max As Integer)
Parameter Description
incorrectWord

Specifies the incorrect word that has to be determined for suggestions.

max

Specifies the maximum number of suggestions that has to be determined.

CreateSuggestions(String, Int32, CultureInfo)

Determines a maximum number of suggestions for a specific incorrect word using selected dictionaries of the TXSpell.Dictionaries DictionaryCollection and the default dictionary folder where the dictionary's language equals to the defined language parameter.

[C#]
public void CreateSuggestions(string incorrectWord, int max, System.Globalization.CultureInfo language);
[Visual Basic]
Public Sub CreateSuggestions(incorrectWord As String, max As Integer, language As System.Globalization.CultureInfo)
Parameter Description
incorrectWord

Specifies the incorrect word that has to be determined for suggestions.

max

Specifies the maximum number of suggestions that has to be determined.

language

The language that is used to create suggestions for the specified incorrect word.