Share via


ISpCFGInterpreterSite::AddTextReplacement (Windows Embedded CE 6.0)

1/6/2010

This method adds one text replacement to the phrase object. The object must have been initialized by calling ISpPhrase::GetPhrase prior to calling this method.

Syntax

HRESULT AddTextReplacement(
  SPPHRASEREPLACEMENT* pReplace
);

Parameters

  • pReplace
    [in] Pointer to an SPPHRASEREPLACEMENT structure that contains the replacement text.

Return Value

The following table shows the possible return values.

Value Description

S_OK

Function completed successfully.

E_INVALIDARG

pReplace is bad or invalid.

SPERR_UNINITIALIZED

The object is uninitialized.

FAILED(hr)

Appropriate error message.

Requirements

Header sapiddk.h, sapiddk.idl
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

ISpCFGInterpreterSite
SAPI Interfaces