ISpellChecker::Add method (spellcheck.h)

Treats the provided word as though it were part of the original dictionary.

The word will no longer be considered misspelled, and will also be considered as a candidate for suggestions.

Syntax

HRESULT Add(
  [in] LPCWSTR word
);

Parameters

[in] word

The word to be added to the list of added words.

Return value

This method can return one of these values.

Return code Description
S_OK
Successful.
E_ INVALIDARG
word is an empty string, or its length is greater than MAX_WORD_LENGTH.
E_POINTER
word is a null pointer.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header spellcheck.h

See also

ISpellChecker