Freigeben über


Midline Property [InkRecognizerGuide Class]

Midline Property [InkRecognizerGuide Class]

Gets or sets the midline height. The midline height is distance from the baseline to the midline, of the drawn box.

Declaration

[C++]

[C++]

[propput] HRESULT put_Midline (
    [in] long Midline
);
[propget] HRESULT get_Midline (
    [out, retval] long* Midline
);

      

[Microsoft® Visual Basic® 6.0]

[Visual Basic]

Public Property Get Midline() As Long
Public Property Let Midline(ByVal theMidline As Long)

      

Property Value

long The midline height of the guide in HIMETRIC units.

This property is read/write.

Return Value

HRESULT value Description
S_OK Success.
E_POINTER Parameter pointer was Null or invalid.
E_INK_EXCEPTION An exception occurred inside the method.

Remarks

The value is 0 if the midline is not present.

Example

[Visual Basic 6.0]

This Visual Basic 6.0 example sets all of the values in the guide simultaneously.


Private Sub ResetGuideSettings( _
ByRef theRecognizerGuide As InkRecognizerGuide, _
ByVal columns As Integer, _
ByVal rows As Integer, _
ByVal midline As Integer, _
ByVal drawnBox As InkRectangle, _
ByVal writingBox As InkRectangle)
    theRecognizerGuide.columns = columns
    theRecognizerGuide.rows = rows
    theRecognizerGuide.midline = midline
    theRecognizerGuide.drawnBox = drawnBox
    theRecognizerGuide.writingBox = writingBox
End Sub

      

Applies To