All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.

ISpellCheck Interface

Declares spell checking settings.

Declaration

export interface ISpellCheck
See Also

Properties

addWordToDictionary Property

Specifies a function that is called when a user clicks the Add to Dictionary context menu command.

Declaration

addWordToDictionary?: (word: string) => void

Property Value

Type Description
(word: string) => void

A function that adds the selected word to the dictionary.

checkWordSpelling Property

Specifies the function that checks a word.

Declaration

checkWordSpelling?: (word: string, callback: (isCorrect: boolean, suggestions: string[]) => void) => void

Property Value

Type Description
(word: string, callback: (isCorrect: boolean, suggestions: string[]) => void) => void

A function that checks the selected word and then calls the callback function. The isCorrect parameter specifies whether the word is correct and the suggestions parameter lists alternatives.

enabled Property

Specifies whether the spell checking is enabled in the RichEdit control.

Declaration

enabled?: boolean

Property Value

Type Description
boolean

true to enable spell check; otherwise, false.

suggestionCount Property

The maximum number of suggested words that can be displayed in the context menu.

Declaration

suggestionCount?: number

Property Value

Type Description
number

The number of words.