TXTextControl.WPF.Proofing.SpellCheckDialogStateManager.SetNext Method

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.WPF.TextControl can be set to the SpellCheckDialog. A new incorrect word or misspelled word (TXTextControl.IFormattedText.MisspelledWords) collection is connected and handled.

SetNext(String)

Sets the text that is handled next by the SpellCheckDialog.

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

The text that is handled next by the SpellCheckDialog.

SetNext(IncorrectWord)

Sets the incorrect word that is handled next by the SpellCheckDialog.

[C#]
public void SetNext(Proofing.IncorrectWord incorrectWord);
[Visual Basic]
Public Sub SetNext(incorrectWord As Proofing.IncorrectWord)
Parameter Description
incorrectWord

The object of type IncorrectWord that is 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.

SetNext(Object)

Sets an object of type TXTextControl.WPF.TextControl that is handled next by the SpellCheckDialog.

[C#]
public void SetNext(object textControl);
[Visual Basic]
Public Sub SetNext(textControl As Object)
Parameter Description
textControl

The object of type TXTextControl.WPF.TextControl that is handled next by the SpellCheckDialog.

SetNext(Object, Object)

Sets an object of type TXTextControl.MisspelledWord that is handled next by the SpellCheckDialog.

[C#]
public void SetNext(object misspelledWord, object iFormattedText);
[Visual Basic]
Public Sub SetNext(misspelledWord As Object, iFormattedText As Object)
Parameter Description
misspelledWord

The object of type TXTextControl.MisspelledWord that is 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.WPF.TextControl whose TextPartCollection contains the IFormattedText parameter.