# SpellCheckTextEventArgs.MisspelledWords Property

> 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.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **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
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > SpellCheckTextEventArgs.MisspelledWords Property
- **389 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/spellchecktexteventargs/misspelledwords-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/spellchecktexteventargs/misspelledwords-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/spellchecktexteventargs/misspelledwords-property/llms-full.txt

---

### Description

Gets or sets an array of [MisspelledWord](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/misspelledword/llms-full.txt) objects. After checking the text which can be obtained with the [SpellCheckTextEventArgs.Text](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/spellchecktexteventargs/text-property/llms-full.txt) property, this property must be set to inform the [TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/llms-full.txt) about the starting position and length of all misspelled words the text contains.

### Syntax

```csharp
public MisspelledWord[] MisspelledWords { get; set; }
```

```vbnet
Public Property MisspelledWords As MisspelledWord()
```

### Examples

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

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

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

---

## Nearby

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