# IFormattedText.MisspelledWords Property

> Gets a collection of all misspelled words in the text part. The property value is an object of the type MisspelledWordCollection.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 16.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl > IFormattedText.MisspelledWords Property
- **463 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/iformattedtext/misspelledwords-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/iformattedtext/misspelledwords-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/iformattedtext/misspelledwords-property/llms-full.txt

---

### Description

Gets a collection of all misspelled words in the text part. The property value is an object of the type [MisspelledWordCollection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/misspelledwordcollection/llms-full.txt).

### Syntax

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

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

### Examples

The following example applies bold formatting through the iformatted text's selection by using `IFormattedText.MisspelledWords`.

```csharp
Selection formattedSelection = iFormattedText.Selection;
formattedSelection.Bold = true;
iFormattedText.Selection = formattedSelection;

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

```vbnet
Dim formattedSelection As Selection = iFormattedText.Selection
formattedSelection.Bold = True
iFormattedText.Selection = formattedSelection

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [IFormattedText.Lines Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/iformattedtext/lines-property/llms-full.txt)
- **Next:** [IFormattedText.Paragraphs Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/iformattedtext/paragraphs-property/llms-full.txt)
