# MisspelledWordCollection.Ignore Method

> Changes the text of the specified misspelled word and marks it as ignored. Ignored misspelled words are not underlined with a red zigzag line.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 18.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 > MisspelledWordCollection.Ignore Method
- **585 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/misspelledwordcollection/ignore-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/misspelledwordcollection/ignore-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/misspelledwordcollection/ignore-method/llms-full.txt

---

### Description

Changes the text of the specified misspelled word and marks it as ignored. Ignored misspelled words are not underlined with a red zigzag line.

### Syntax

```csharp
public bool Ignore(MisspelledWord misspelledWord, string changedText);
```

```vbnet
Public Function Ignore(misspelledWord As MisspelledWord, changedText As String) As Boolean
```

### Parameters

| Parameter | Description |
|---|---|
| misspelledWord | Specifies the misspelled word to change. |
| changedText | Specifies the changed text. The current text of the word is replaced with this text. |

### Return Value

The return value is true, if the misspelled word could be changed. Otherwise, it is false.

### Examples

The following example works with misspelled words in the current document by using `MisspelledWordCollection.Ignore`.

```csharp
MisspelledWordCollection misspelledWordCollection = textControl.MisspelledWords;

if (misspelledWordCollection.Ignore(new MisspelledWord(1, 1), "Quarterly results"))
{
    Console.WriteLine("Ignore completed successfully.");
}
```

```vbnet
Dim misspelledWordCollection As MisspelledWordCollection = textControl.MisspelledWords

If misspelledWordCollection.Ignore(New MisspelledWord(1, 1), "Quarterly results") Then
    Console.WriteLine("Ignore completed successfully.")
End If
```

---

## Nearby

- **Previous:** [MisspelledWordCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/misspelledwordcollection/getitem-method/llms-full.txt)
- **Next:** [MisspelledWordCollection.Item Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/misspelledwordcollection/item-property/llms-full.txt)
