TX Spell .NET for WPF

IncorrectWordChanging 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 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;

Examples

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

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

Remarks

This event does not occur on changing objects of type TXTextControl.MisspelledWord. Those operations are handled by the MisspelledWordChanging event.