Partager via


IInkRecognitionAlternates::Item

4/8/2010

Returns the IInkRecognitionAlternate object at the specified index within the IInkRecognitionAlternates collection.

Syntax

HRESULT Item (
  [in] long index,
  [out, retval] IInkRecognitionAlternate **InkRecoAlternate
);

Parameters

  • index
    The zero–based index of the IInkRecognitionAlternate object to get.
  • InkRecoAlternate
    Returns the IInkRecognitionAlternate object at the specified index within the IInkRecognitionAlternate collection.

Return Value

HRESULT value Description

S_OK

Success.

E_POINTER

A parameter contained an invalid pointer.

E_FAIL

An unspecified error occurred.

CO_E_CLASSTRING

Invalid GUID format.

DISP_E_TYPEMISMATCH

One of the parameters is not a valid VARIANT type. For more information, see VARIANT and VARIANTARG.

E_INVALIDARG

Invalid argument.

E_UNEXPECTED

Unexpected parameter or property type.

REGDB_CLASSNOTREG

Type object not registered.

E_OUTOFMEMORY

Cannot allocate memory to complete the operation.

E_INK_EXCEPTION

An exception occurred inside the method.

TPC_E_RECOGNIZER_NOT_REGISTERED

The recognizer's registry key is corrupted.

Remarks

An error occurs if the index doesn't match any existing member of the collection.

Requirements

Header msinkaut.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile 6 Classic and later, Windows Mobile 6 Professional and later

See Also

Concepts

Windows Mobile Ink Reference