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.

ISpellChecker::AutoCorrect method

Causes occurrences of one word to be replaced by another.

Syntax


HRESULT AutoCorrect(
  [in] LPCWSTR from,
  [in] LPCWSTR to
);

Parameters

from [in]

The incorrectly spelled word to be autocorrected.

to [in]

The correctly spelled word that should replace from.

Return value

This method can return one of these values.

Return codeDescription
S_OK

Successful.

E_ INVALIDARG

from or to is an empty string, or the length of at least one of the parameters is greater than MAX_WORD_LENGTH.

E_POINTER

from or to is a null pointer.

 

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

ISpellChecker

 

 

Show:
© 2017 Microsoft