# SpellCheckTextEventArgs Class

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

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 16.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Inherits:** `System.EventArgs`
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > SpellCheckTextEventArgs Class
- **586 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/spellchecktexteventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/spellchecktexteventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/spellchecktexteventargs/llms-full.txt

---

### Description

The SpellCheckTextEventArgs class provides data for the [TextControl.SpellCheckText](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/spellchecktext-event/llms-full.txt) and [WPF.TextControl.SpellCheckText](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/spellchecktext-event/llms-full.txt) events.

### Syntax

```csharp
public class SpellCheckTextEventArgs : EventArgs
```

```vbnet
Public Class SpellCheckTextEventArgs
    Inherits EventArgs
```

### Examples

The following example uses `SpellCheckTextEventArgs.Culture` while handling `SpellCheckText`.

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

```vbnet
AddHandler textControl.SpellCheckText,
    Sub(sender, e)
        Console.WriteLine($"Culture: {e.Culture}")
    End Sub
```

---

## In This Section

- [SpellCheckTextEventArgs.Culture Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/spellchecktexteventargs/culture-property/llms-full.txt): Gets the culture of the text to check.
- [SpellCheckTextEventArgs.MisspelledWords Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/spellchecktexteventargs/misspelledwords-property/llms-full.txt): 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.
- [SpellCheckTextEventArgs.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/spellchecktexteventargs/text-property/llms-full.txt): 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.

---

## Nearby

- **Previous:** [SignerData.Title Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/signerdata/title-property/llms-full.txt)
- **Next:** [SpellCheckTextEventArgs.Culture Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/spellchecktexteventargs/culture-property/llms-full.txt)
