Provides a method to set a specific incorrect or misspelled (TXTextControl.MisspelledWord) word, that should be handled next by the SpellCheckDialog. Furthermore, a complete new text or an object of type TXTextControl.TextControl can be set to the SpellCheckDialog. A new incorrect word or misspelled word (TXTextControl.IFormattedText.MisspelledWords) collection is connected and handled.

SetNext(String)

public void SetNext(string text);
Public Sub SetNext(text As String)

SetNext(Proofing.IncorrectWord)

public void SetNext(Proofing.IncorrectWord incorrectWord);
Public Sub SetNext(incorrectWord As Proofing.IncorrectWord)

SetNext(Object)

public void SetNext(object textControl);
Public Sub SetNext(textControl As Object)

SetNext(Object, Object)

public void SetNext(object misspelledWord, object iFormattedText);
Public Sub SetNext(misspelledWord As Object, iFormattedText As Object)

Parameters

Parameter Description
text The text that should be handled next by the SpellCheckDialog.
incorrectWord The object of type IncorrectWord that should be handled next by the SpellCheckDialog. It must be part of the incorrect word collection that was created by calling the SetNext method with a string parameter or connected by invoking the SpellCheckDialog with the first or second overload of the TXSpellChecker.SpellCheckDialog.Show method.
textControl The object of type TXTextControl.TextControl that should be handled next by the SpellCheckDialog.
misspelledWord The object of type TXTextControl.MisspelledWord that should be handled next by the SpellCheckDialog.
iFormattedText The object of type TXTextControl.IFormattedText that contains the misspelled word (TXTextControl.MisspelledWord).

Remarks

An exception is thrown for the second overload, if the SpellCheckDialog is connected to an instance of TXTextControl.WPF.TextControl.

An exception is thrown for the fourth overload, if the SpellCheckDialog is not connected to an instance of TXTextControl.TextControl object of which TextPartCollection contains the iFormattedText parameter.