UserDictionaryWordAdded 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 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;Public Event UserDictionaryWordAdded As UserDictionaryWordAddedHandlerExamples
The following example records useful context when user dictionary word added occurs.
tXSpellChecker.UserDictionaryWordAdded += (sender, e) =>
{
Console.WriteLine($"Added Word: {e.AddedWord}");
};AddHandler tXSpellChecker.UserDictionaryWordAdded,
Sub(sender, e)
Console.WriteLine($"Added Word: {e.AddedWord}")
End Sub