SpellCheckText Event
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
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;Public Event SpellCheckText As SpellCheckTextEventHandlerExamples
The following example records useful context when spell check text occurs.
textControl.SpellCheckText += (sender, e) =>
{
Console.WriteLine($"Text: {e.Text}");
};AddHandler textControl.SpellCheckText,
Sub(sender, e)
Console.WriteLine($"Text: {e.Text}")
End Sub