Click to Rate and Give Feedback
MSDN
MSDN Library
Tablet PC
Core Reference
InkWordList Class
Methods
 InkWordList.AddWord Method

  Switch on low bandwidth view
InkWordList.AddWord Method


Adds a single word to the InkWordList object.

Syntax

C++

HRESULT AddWord(
  [in]  BSTR word
);

Parameters

word [in]

The word to add to an InkWordList object. The word is not added if it already exists in the list.

For more information about the BSTR data type, see Using the COM Library.

Return Value

The method can return one of the following values.

Return codeDescription
S_OK

Success.

S_FALSE

The word already exists in the list.

E_OUTOFMEMORY

Cannot allocate memory to complete the operation.

E_FAIL

An unspecified error occurred.

E_POINTER

A parameter contained an invalid pointer.

E_INK_EXCEPTION

An exception occurred inside the method.

 

Remarks

If a string is added to a word list, its capitalized versions are also implicitly added. For instance, adding "hello" implicitly adds "Hello" and "HELLO".

Applies To

  • InkWordList

Requirements

Minimum supported clientWindows XP Tablet PC Edition
Minimum supported serverNone supported
HeaderMsinkaut.h, msinkaut_i.c
LibraryInkObj.dll

See Also

InkWordList
RemoveWord Method
InkRecognizerContext Class

Send comments about this topic to Microsoft

Build date: 4/29/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker