Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ISpellCheckerFactory::CreateSpellChecker method

Creates a spell checker that supports the specified language.

Syntax


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

Parameters

languageTag [in]

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

value [out, retval]

The created spell checker.

Return value

This method can return one of these values.

Return codeDescription
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

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Spellcheck.h

IDL

Spellcheck.idl

See also

ISpellCheckerFactory
ISpellCheckerFactory::IsSupported
ISpellChecker
BCP47 Tags for Identifying Languages

 

 

Show:
© 2017 Microsoft