IncorrectWordChanging Event
- Namespace
TXTextControl.WPF. Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Occurs when an object of type IncorrectWord is changing by spell check context menu or spell check dialog operations. The IncorrectWordChangingHandler receives an argument of type IncorrectWordChangingEventArgs containing data related to this event.
Syntax
public event IncorrectWordChangingHandler IncorrectWordChanging;Public Event IncorrectWordChanging As IncorrectWordChangingHandlerExamples
The following example records useful context when incorrect word changing occurs.
tXSpellChecker.IncorrectWordChanging += (sender, e) =>
{
Console.WriteLine($"Cancel: {e.Cancel}");
};AddHandler tXSpellChecker.IncorrectWordChanging,
Sub(sender, e)
Console.WriteLine($"Cancel: {e.Cancel}")
End SubRemarks
This event does not occur on changing objects of type TXTextControl.MisspelledWord. Those operations are handled by the MisspelledWordChanging event.