IInkCursorButtons::Item method (msinkaut.h)
Retrieves the IInkCursorButton object at the specified index or string identifier within the IInkCursorButtons collection.
Syntax
HRESULT Item(
[in] VARIANT Identifier,
[out, retval] IInkCursorButton **Button
);
Parameters
[in] Identifier
The zero-based index or BSTR identifier of the IInkCursorButton object to get.
For more information about the VARIANT and BSTR data types, see Using the COM Library.
[out, retval] Button
Upon return, contains the IInkCursorButton object at the specified index within the IInkCursorButtons 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.
The Item method takes an input argument of type VARIANT. However, the subtype of this variable must be integer or string (BSTR). This means that when you are using late binding, such as when you use a scripting language, you must pass in the argument as a STRING literal and not use a variable.
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 |