IInkLineInfo::SetCandidate method (msinkaut.h)
Updates one recognition alternate in the recognition result list, either by replacing an existing alternate, or by adding an alternate to the list.
Syntax
HRESULT SetCandidate(
[in] UINT nCandidateNum,
[in] LPWSTR strRecogWord
);
Parameters
[in] nCandidateNum
Zero based index of the alternate list entry to set.
[in] strRecogWord
Pointer to the new alternate text.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
The method succeeded. |
|
The nCandidateNum index is out of range. |
|
Could not complete the operation. The recognition result list is not changed. |
Remarks
The candidate list can only be extended by one new entry at a time, at the end of the current list. For example, if the text ink object (tInk) currently has ten recognition results, then setting the nCandidateNum parameter to 10 adds a new result to the text ink object's recognition result list.
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 |