# MisspelledWordDelete Method

> Removes a misspelled word, counted from 1, from the list of misspelled words without deleting its text, and optionally replaces its text with corrected text.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > MisspelledWordDelete Method
- **251 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/misspelledworddelete-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/misspelledworddelete-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/misspelledworddelete-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.

Introduced: 16.0.

### Syntax

```vbscript
TXTextControl.MisspelledWordDelete Number, CorrectedText
```

### Parameters

| Parameter | Description |
|---|---|
| Number | Specifies the number of the misspelled word to remove. All misspelled words are counted from the beginning to the end of a document. The first word has the number 1. |
| CorrectedText | Specifies corrected text. The current text of the word is replaced with this text. If an empty string is specified, the word's text remains the same. |

### Return Value

The method returns True when the operation could be performed, otherwise it returns False.

### Data Types

| Name | Data type |
|---|---|
| Number | Long |
| CorrectedText | String |
| Return value | Boolean |

### See Also

- [Programming Category: Spell Checking](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/spell-checking/llms-full.txt)

---

## Nearby

- **Previous:** [MisspelledWordAtInputPos Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/misspelledwordatinputpos-property/llms-full.txt)
- **Next:** [MisspelledWordLength Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/misspelledwordlength-property/llms-full.txt)
