IInkRecognitionAlternate::GetTextRangeFromStrokes
4/8/2010
Returns the smallest range of recognized text for which the recognizer can return an IInkRecognitionAlternate that contains a known IInkStrokes collection.
Syntax
HRESULT GetTextRangeFromStrokes (
[in] IInkStrokes *strokes,
[in,out] long *selectionStart,
[in,out] long *selectionLength
);
Parameters
- strokes
The collection of strokes for which to find the containing alternate.
- selectionStart
The start position of the range of recognized text within the alternate object on which this method was called that matches the smallest alternate that contains the passed–in strokes.
- selectionLength
The length of the text within the range of recognized text of the smallest alternate that contains the passed–in strokes.
Remarks
Use this method to retrieve the text that corresponds to a specified range of strokes. For example, consider a collection of strokes, "how are you", that was drawn using nine strokes (one for each letter and three for each word). If a collection that consists of the sixth and seventh strokes is passed in, corresponding to characters "e" and "y", the text range returned matches the alternate containing "are you" and the selection start and length matches this substring.
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 |