ISpellCheckerFactory::CreateSpellChecker method (spellcheck.h)

Creates a spell checker that supports the specified language.

Syntax

HRESULT CreateSpellChecker(
  [in]          LPCWSTR       languageTag,
  [out, retval] ISpellChecker **value
);

Parameters

[in] languageTag

A BCP47 language tag that identifies the language for the requested spell checker.

[out, retval] value

The created spell checker.

Return value

This method can return one of these values.

Return code Description
S_OK
Successful.
E_ INVALIDARG
languageTag is an empty string, or there is no spell checker available for languageTag.
E_POINTER
languageTag is a null pointer.

Remarks

ISpellCheckerFactory::IsSupported can be called to determine if languageTag is supported. This will create the preferred spell checker (according to user ranking) for the given language.

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

BCP47 Tags for Identifying Languages

ISpellChecker

ISpellCheckerFactory

ISpellCheckerFactory::IsSupported