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