IInkRecognitionAlternate::Baseline property
Gets the baseline for a IInkRecognitionAlternate object that represents a single line of text.
This property is read-only.
Syntax
HRESULT get_Baseline( [out, retval] VARIANT *baseline );
Property value
An array of type LONG of the form, x1, y1, x2, y2, where the points (x1, y1) and (x2, y2) describe the baseline in ink space coordinates for the IInkRecognitionAlternate object.
For more information about the VARIANT structure, see Using the COM Library.
Error codes
| Name | Meaning |
|---|---|
|
Success. |
|
The baseline parameter is an invalid pointer. |
|
Unspecific ink error. Can be caused by an alternate that spans more than one line. |
|
An exception occurred while processing. |
|
An invalid argument was passed to a recognizer of East Asian characters. |
Remarks
The baseline is the imaginary horizontal line with which the base of each character, excluding decenders, is aligned. It also corresponds to the bottom of the x-height.
If the recognition alternate spans more than one recognition segment within a line of text, then this property returns a line that begins at the first point of the baseline of the first segment in the alternate and ends at the last point of the baseline of the last segment in the alternate.
You can use the AlternatesWithConstantPropertyValues method with the propertyType parameter set to the Segmentation recognition property globally unique identifier (GUID) to get a collection of one segment recognition alternates that correspond to a segmentation of your original alternate.
Requirements
|
Minimum supported client |
Windows XP Tablet PC Edition [desktop apps only] |
|---|---|
|
Minimum supported server |
None supported |
|
Header |
|
|
Library |
|
See also
- IInkRecognitionAlternate Interface
- AlternatesWithConstantPropertyValues Method
- LineAlternates Property
- Ascender Property
- Descender Property
- Midline Property [IInkRecognitionAlternate Interface]