# MisspelledWordCollection Class

> An instance of the MisspelledWordCollection class contains all misspelled words in the main part of a Text Control document. An instance of this class can be obtained with the TextControl.MisspelledWords, WPF.TextControl.MisspelledWords, HeaderFooter.MisspelledWords or TextFrame.MisspelledWords property. The MisspelledWordCollection class implements the IEnumerable and the ICollection interfaces. Misspelled words are represented through objects of the type MisspelledWord.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 16.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Implements:** `System.Collections.ICollection`, `System.Collections.IEnumerable`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > MisspelledWordCollection Class
- **1003 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledwordcollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledwordcollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledwordcollection/llms-full.txt

---

### Description

An instance of the MisspelledWordCollection class contains all misspelled words in the main part of a Text Control document. An instance of this class can be obtained with the [TextControl.MisspelledWords](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/misspelledwords-property/llms-full.txt), [WPF.TextControl.MisspelledWords](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/misspelledwords-property/llms-full.txt), [HeaderFooter.MisspelledWords](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/headerfooter/misspelledwords-property/llms-full.txt) or [TextFrame.MisspelledWords](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/misspelledwords-property/llms-full.txt) property. The MisspelledWordCollection class implements the IEnumerable and the ICollection interfaces. Misspelled words are represented through objects of the type [MisspelledWord](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledword/llms-full.txt).

### Syntax

```csharp
public class MisspelledWordCollection : ICollection, IEnumerable
```

```vbnet
Public Class MisspelledWordCollection
    Implements ICollection, IEnumerable
```

### Examples

The following example works with misspelled words in the current document. The created object is then available to the surrounding document workflow.

```csharp
MisspelledWordCollection misspelledWordCollection = textControl.MisspelledWords;
Console.WriteLine("Misspelled Word Collection is ready for use.");
```

```vbnet
Dim misspelledWordCollection As MisspelledWordCollection = textControl.MisspelledWords
Console.WriteLine("Misspelled Word Collection is ready for use.")
```

---

## In This Section

- [MisspelledWordCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledwordcollection/copyto-method/llms-full.txt): Copies the elements of the collection to an array, starting at a particular index.
- [MisspelledWordCollection.Count Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledwordcollection/count-property/llms-full.txt): Gets the number of elements contained in the collection.
- [MisspelledWordCollection.GetCount Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledwordcollection/getcount-method/llms-full.txt): Returns the number of misspelled words with a special meaning from the collection.
- [MisspelledWordCollection.GetEnumerator Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledwordcollection/getenumerator-method/llms-full.txt): Returns an enumerator that can be used to iterate through the collection.
- [MisspelledWordCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledwordcollection/getitem-method/llms-full.txt): Gets a particular item from the collection.
- [MisspelledWordCollection.Ignore Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledwordcollection/ignore-method/llms-full.txt): Changes the text of the specified misspelled word and marks it as ignored. Ignored misspelled words are not underlined with a red zigzag line.
- [MisspelledWordCollection.Item Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledwordcollection/item-property/llms-full.txt): Gets a misspelled word from the collection. In C# this property is the indexer for the MisspelledWordCollection class.
- [MisspelledWordCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledwordcollection/remove-method/llms-full.txt): Removes the specified misspelled word from a Text Control document. The method removes the word's reference in the list of misspelled words, but not the word's text in the document. If text is specified, this text replaces the word's text.

---

## Nearby

- **Previous:** [MisspelledWord.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledword/text-property/llms-full.txt)
- **Next:** [MisspelledWordCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/misspelledwordcollection/copyto-method/llms-full.txt)
