TX Spell .NET for WPF

UserDictionaryWordAdded 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 a word is added to a user dictionary. The UserDictionaryWordAddedHandler receives an argument of type UserDictionaryWordAddedEventArgs containing data related to this event.

Syntax

public event UserDictionaryWordAddedHandler UserDictionaryWordAdded;

Examples

The following example records useful context when user dictionary word added occurs.

tXSpellChecker.UserDictionaryWordAdded += (sender, e) =>
{
    Console.WriteLine($"Added Word: {e.AddedWord}");
};