TX Text Control .NET for WPF

SpellCheckTextEventArgs Class

Class|Introduced in 16.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Inherits
  1. EventArgs
  2. SpellCheckTextEventArgs

Description

The SpellCheckTextEventArgs class provides data for the TextControl.SpellCheckText and WPF.TextControl.SpellCheckText events.

Syntax

public class SpellCheckTextEventArgs : EventArgs

Examples

The following example uses SpellCheckTextEventArgs.Culture while handling SpellCheckText.

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

Members

Properties

PropertyDescription
CultureGets the culture of the text to check.
MisspelledWordsGets or sets an array of MisspelledWord objects. After checking the text which can be obtained with the SpellCheckTextEventArgs.Text property, this property must be set to inform the TextControl about the starting position and length of all misspelled words the text contains.
TextGets the text to check. After checking the text, the SpellCheckTextEventArgs.MisspelledWords property must be set to inform the TextControl about the starting and ending positions of all misspelled words this text contains.