Sets an object of type TXTextControl.TextControl or text for user interface based spelling correction. Furthermore, overloads of the method determine and set a specific incorrect or misspelled (TXTextControl.MisspelledWord) word based on a specific text position to handle it by the SpellingCorrectionUIProvider.

SetCurrent(Object)

public void SetCurrent(object textControl);

SetCurrent(String)

public void SetCurrent(string text);

Parameters

Parameter Description
text The text that is handled by the SpellingCorrectionUIProvider.
textControl The object of type TXTextControl.TextControl that is handled by the SpellingCorrectionUIProvider.

Return Value

SetCurrent methods including a textPosition parameter return true if the corresponding CurrentWordToCorrect property is changed on calling this method. Otherwise false.

Remarks

Throws an exception if the IsOptionsSettings property is set to true.