TE Edit Control Java / HTML-JavaScript Help
Product page

SpellWordReplaced

This event is fired when the spell-checker replaces a misspelled word.

void SpellWordReplaced(object Sender,int CharPos,
                             String OldWord, String NewWord)
{
  ....
}

The relevant TejEvent fields:

int CharPos;    // The character position of the replaced word.
String OldWord; // The original word.
String NewWord; // The replacement word.

The 'CharPos' parameter indicates the character position of the replaced word. You can use the TerAbsToRowCol method to convert the character position to a line/column value.