Skip to main content
All docs
V25.1
  • 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.