TX Text Control .NET for WPF

SpellCheckText Event

Event|Introduced in 16.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.Server.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 SpellChecker property has been set to null and if the IsSpellCheckingEnabled property has been set to true. If a spell checking component has been connected with the ServerTextControl, this event is handled internally. 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}");
};