IInkTablets::Item method (msinkaut.h)
Retrieves the IInkTablet object at the specified index within the InkTablets collection.
Syntax
HRESULT Item(
[in] long Index,
[out, retval] IInkTablet **Tablet
);
Parameters
[in] Index
The zero-based index of the IInkTablet object to get.
[out, retval] Tablet
When this method returns, contains a pointer to the IInkTablet object at the specified index within the InkTablets collection.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
A parameter contained an invalid pointer. |
|
An unspecified error occurred. |
|
Invalid GUID format. |
|
One of the parameters is not a valid VARIANT type. |
|
Invalid argument. |
|
Unexpected parameter or property type. |
|
Type object not registered. |
|
Cannot allocate memory to complete the operation. |
|
An exception occurred inside the method. |
|
The recognizers registry key is corrupted or your environment does not support handwriting recognition. |
Remarks
An error occurs if the index doesn't match any existing member of the collection.
Note This function can be re-entered when called within certain message handlers, causing unexpected results. Take care to avoid a reentrant call when handling any of the following messages: WM_ACTIVATE, WM_ACTIVATEAPP, WM_NCACTIVATE, WM_PAINT; WM_SYSCOMMAND if wParam is set to SC_HOTKEY or SC_TASKLIST; and WM_SYSKEYDOWN (when processing Alt-Tab or Alt-Esc key combinations). This is an issue with single-threaded apartment model applications.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP Tablet PC Edition [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | msinkaut.h |
Library | InkObj.dll |