# TextControl.MisspelledWords Property

> Gets a collection of all misspelled words contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property's value is an object of the type MisspelledWordCollection. Misspelled words can be corrected with the SpellCheckDialog method when a spell checking component is connected with the TextControl.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 16.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > TextControl.MisspelledWords Property
- **413 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/misspelledwords-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/misspelledwords-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/misspelledwords-property/llms-full.txt

---

### Description

Gets a collection of all misspelled words contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property's value is an object of the type [MisspelledWordCollection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/misspelledwordcollection/llms-full.txt). Misspelled words can be corrected with the [SpellCheckDialog](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/spellcheckdialog-method/llms-full.txt) method when a spell checking component is connected with the TextControl.

### Syntax

```csharp
public MisspelledWordCollection MisspelledWords { get; }
```

```vbnet
Public ReadOnly Property MisspelledWords As MisspelledWordCollection
```

### Examples

The following example iterates through the misspelled words collection and processes each misspelled word.

```csharp
foreach (MisspelledWord misspelledWord in textControl.MisspelledWords)
{
    Console.WriteLine(misspelledWord.IsDuplicate);
}
```

```vbnet
For Each misspelledWord As MisspelledWord In textControl.MisspelledWords
    Console.WriteLine(misspelledWord.IsDuplicate)
Next
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TextControl.MiniToolbarOpening Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/minitoolbaropening-event/llms-full.txt)
- **Next:** [TextControl.ObjectMiniToolbarInitialized Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/objectminitoolbarinitialized-event/llms-full.txt)
