# TextFrame.MisspelledWords Property

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

- **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 > TextFrame.MisspelledWords Property
- **474 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textframe/misspelledwords-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textframe/misspelledwords-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textframe/misspelledwords-property/llms-full.txt

---

### Description

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

### Syntax

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

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

### Examples

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

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

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

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

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

### Limitations

Read only.

---

## Nearby

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