# Javascript: MisspelledWord.setIsIgnored Method

> Sets a value which marks the misspelled word as ignored. An ignored misspelled word remains in the collection of misspelled words, but it is not underlined in the text with a red zigzag line.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: MisspelledWord.setIsIgnored Method
- **417 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/misspelledword/setisignored-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/misspelledword/setisignored-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/misspelledword/setisignored-method/llms-full.txt

---

### Description

Sets a value which marks the misspelled word as ignored. An ignored misspelled word remains in the collection of misspelled words, but it is not underlined in the text with a red zigzag line.

### Syntax

```javascript
<void> MisspelledWord.setIsIgnored(<Boolean> isIgnored, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| isIgnored | A value which marks the misspelled word as ignored. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `MisspelledWord.setIsIgnored` in a practical document-editing workflow. It sets a value which marks the misspelled word as ignored. An ignored misspelled word remains in the collection of misspelled words, but it is not underlined in the text with a red zigzag line.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function configureIsIgnored(misspelledWord) {
    misspelledWord.setIsIgnored(
        true,
        function() {
            console.log("set is ignored completed.");
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: MisspelledWord.setIsDuplicate Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/misspelledword/setisduplicate-method/llms-full.txt)
- **Next:** [MisspelledWordCollection Object](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/misspelledwordcollection/llms-full.txt)
