IInkRecognitionAlternate::AlternatesWithConstantPropertyValues method (msinkaut.h)
Retrieves a IInkRecognitionAlternates collection, which are a division of the IInkRecognitionAlternate object on which this method is called.
Syntax
HRESULT AlternatesWithConstantPropertyValues(
[in] BSTR PropertyType,
[out, retval] IInkRecognitionAlternates **AlternatesWithConstantPropertyValues
);
Parameters
[in] PropertyType
Specifies a string value that identifies the property. For a list of the properties that can be used, see RecognitionProperty.
For more information about the BSTR data type, see Using the COM Library.
[out, retval] AlternatesWithConstantPropertyValues
When this method returns, contains an IInkRecognitionAlternates collection which is made up of a division of the alternate on which this method is called. Each IInkRecognitionAlternate object in the collection contains adjacent recognition segments which have the same property value for the propertyType parameter.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
A parameter contained an invalid pointer. |
|
The recognition range is invalid. |
|
An exception occurred while processing. |
|
Cannot allocate memory to complete the operation. |
Remarks
Each alternate in the collection contains adjacent recognition segments which have the same property value for the property passed into the method.
For example, you can return alternates that divide the original alternate by:
- Level of confidence boundaries-strong, intermediate, or poor-in the recognition result.
- Line boundaries.
- Recognition segment boundaries.
The LineAlternates property is an alternative to the AlternatesWithConstantPropertyValues method, where LineNumber is the RecognitionProperty that separates the alternates in the returned recognition alternates collection.
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 |
See also
GetAlternatesFromSelection Method
IInkRecognitionAlternate Interface
IInkRecognitionAlternates Interface