TX Spell .NET for WPF

MisspelledWordChanging Event

Event|Introduced in 3.0
Namespace
TXTextControl.WPF.Proofing
Package
TXTextControl.TXSpell.WPF.SDK as TXSpell.WPF.dll from the private NuGet feed or Text Control Offline Packages

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;

Examples

The following example records useful context when misspelled word changing occurs.

tXSpellChecker.MisspelledWordChanging += (sender, e) =>
{
    Console.WriteLine($"Cancel: {e.Cancel}");
};

Remarks

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.