SpellCheckTextEventArgs Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.dll
- Inherits
- Event
Args - Spell
Check Text Event Args
- Event
Description
The SpellCheckTextEventArgs class provides data for the TextControl.SpellCheckText and WPF.TextControl.SpellCheckText events.
Syntax
public class SpellCheckTextEventArgs : EventArgsPublic Class SpellCheckTextEventArgs
Inherits EventArgsExamples
The following example uses SpellCheckTextEventArgs.Culture while handling SpellCheckText.
textControl.SpellCheckText += (_, e) =>
{
Console.WriteLine($"Culture: {e.Culture}");
};AddHandler textControl.SpellCheckText,
Sub(sender, e)
Console.WriteLine($"Culture: {e.Culture}")
End SubMembers
Properties
| Property | Description |
|---|---|
| Culture | Gets the culture of the text to check. |
| MisspelledWords | Gets 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. |
| Text | Gets 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. |