# IncorrectWordCollection Class

> An instance of the IncorrectWordCollection class contains objects of the type IncorrectWord. It is inherited from the abstract class System.Collections.CollectionBase and implements the System.Collections.IEnumerable and System.Collections.IEnumerator interfaces. For a list of properties, methods and events of these classes and interfaces see the .NET Framework reference.

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Namespace:** `TXTextControl.Proofing`
- **Package:** `TXTextControl.TXSpell.WinForms.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TXSpell.Core.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.dll` from the setup
- **Inherits:** `System.Collections.CollectionBase`
- **Implements:** `System.Collections.IEnumerable`, `System.Collections.IEnumerator`
- **Path:** TX Spell .NET for Windows Forms > Reference > TXTextControl.Proofing > IncorrectWordCollection Class
- **646 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/incorrectwordcollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/incorrectwordcollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/incorrectwordcollection/llms-full.txt

---

### Description

An instance of the IncorrectWordCollection class contains objects of the type [IncorrectWord](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/incorrectword/llms-full.txt). It is inherited from the abstract class `System.Collections.CollectionBase` and implements the `System.Collections.IEnumerable` and `System.Collections.IEnumerator` interfaces. For a list of properties, methods and events of these classes and interfaces see the .NET Framework reference.

### Syntax

```csharp
public sealed class IncorrectWordCollection : CollectionBase, IEnumerable, IEnumerator
```

```vbnet
Public NotInheritable Class IncorrectWordCollection
    Inherits CollectionBase
    Implements IEnumerable, IEnumerator
```

### Examples

The following example includes the current value from an Incorrect Word Collection object in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Current: {incorrectWordCollection.Current}");
Console.WriteLine("Incorrect Word Collection is ready for use.");
```

```vbnet
Console.WriteLine($"Current: {incorrectWordCollection.Current}")
Console.WriteLine("Incorrect Word Collection is ready for use.")
```

---

## In This Section

- [IncorrectWordCollection.Item Method](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/incorrectwordcollection/item-method/llms-full.txt): Gets an incorrect word from the collection. This property is the indexer for the IncorrectWordCollection class.

---

## Nearby

- **Previous:** [IncorrectWordChangingEventArgs.WillBeDuplicate Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/willbeduplicate-property/llms-full.txt)
- **Next:** [IncorrectWordCollection.Item Method](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/incorrectwordcollection/item-method/llms-full.txt)
