MisspelledWordDelete Method
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
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 |