# Spell Checking

> Enable spell checking in TXTextControl with EnableSpellChecking, find misspelled words and their positions and check altered text in the SpellCheckText event.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control ActiveX > API Reference > Programming Categories > Spell Checking
- **475 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/spell-checking/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/spell-checking/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/spell-checking/llms-full.txt

---

While spell checking is active, `TXTextControl` raises an event whenever altered text must be checked. The members below switch spell checking on, count the misspelled words of a document, find their position and length and remove a misspelled word.

### Properties

| Member | Description |
|---|---|
| [`TXTextControl.EnableSpellChecking`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/enablespellchecking-property/llms-full.txt) | Gets or sets a value indicating whether spell checking is active or not. |
| [`TXTextControl.MisspelledWordAtInputPos`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/misspelledwordatinputpos-property/llms-full.txt) | Gets the number of the misspelled word at the current text input position. |
| [`TXTextControl.MisspelledWordLength`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/misspelledwordlength-property/llms-full.txt) | Gets the length of the misspelled word with the specified number. |
| [`TXTextControl.MisspelledWords`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/misspelledwords-property/llms-full.txt) | Gets the current number of misspelled words. |
| [`TXTextControl.MisspelledWordStart`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/misspelledwordstart-property/llms-full.txt) | Gets the zero-based position of the misspelled word with the specified number. |

### Methods

| Member | Description |
|---|---|
| [`TXTextControl.MisspelledWordDelete`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/misspelledworddelete-method/llms-full.txt) | Removes the specified misspelled word from a `TXTextControl` document. |

### Events

| Member | Description |
|---|---|
| [`TXTextControl.SpellCheckText`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/spellchecktext-event/llms-full.txt) | Occurs, if the document's text has been altered and the spelling of the new text must be checked. |

### Related Pages

- [Text Selections and Character Input](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/selections/llms-full.txt): selection, input position, mouse and keyboard events.
- [Control Settings](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/control-settings/llms-full.txt): border, colors, view mode, language and other settings of the control.

---

## Nearby

- **Previous:** [Control Settings](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/control-settings/llms-full.txt)
- **Next:** [Using a Table of Contents](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/table-of-contents/llms-full.txt)
