TX Text Control .NET for WPF

SpellCheckText Event

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

Description

Occurs, if the document's text has been altered and the spelling of the new text must be checked. This event occurs only, if the WPF.TextControl.IsSpellCheckingEnabled property has been set to true. The event handler receives an argument of type SpellCheckTextEventArgs containing data related to this event.

Syntax

public event SpellCheckTextEventHandler SpellCheckText;

Examples

The following example records useful context when spell check text occurs.

textControl.SpellCheckText += (sender, e) =>
{
    Console.WriteLine($"Text: {e.Text}");
};