ISpellCheckProvider::InitializeWordlist method

Initialize the specified word list to contain only the specified words.

Syntax


HRESULT InitializeWordlist(
  [in] WORDLIST_TYPE wordlistType,
  [in] IEnumString   *words
);

Parameters

wordlistType [in]

The type of word list.

words [in]

The set of words to be included in the word list, passed as an IEnumString object..

Return value

This method can return one of these values.

Return codeDescription
S_OK

Successful.

E_ INVALIDARG

wordlistType is not a valid member of the WORDLIST_TYPE enumeration.

 

Remarks

This method is called by the system (for example, when the client calls ISpellChecker::Add), which passes the words from the respective word list to the provider so that it can consider the word list when spell checking.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Spellcheckprovider.h

IDL

Spellcheckprovider.idl

See also

ISpellCheckProvider
ISpellChecker::Add
WORDLIST_TYPE
IEnumString

 

 

Show: