TXTextControl.Proofing.TXSpellChecker.Check Method

Checks text for spelling errors and fills the IncorrectWordCollection at TXSpellChecker.IncorrectWords with all incorrect words. The first implementation uses selected dictionaries of the DictionaryCollection at TXSpellChecker.Dictionaries. The second implementation uses selected dictionaries of the TXSpellChecker.Dictionaries DictionaryCollection and the default dictionary folder where the dictionary's language equals to the defined language parameter. Only those dictionaries are used whose Dictionary.IsSpellCheckingEnabled properties are set to true.

Check(String)

Checks text for spelling errors using selected dictionaries of the DictionaryCollection at TXSpellChecker.Dictionaries.

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

Specifies the text to spell check.

Check(String, CultureInfo)

Checks text for spelling errors using selected dictionaries of the TXSpellChecker.Dictionaries DictionaryCollection and the default dictionary folder where the dictionary's language equals to the defined language parameter.

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

Specifies the text to spell check.

language

The language that is used to spell check the specified text.

Remarks

This method throws an exception, if called while the SpellCheckDialog is open.