Bagikan melalui


RecognizerGuide.Midline Property

RecognizerGuide.Midline Property

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

Definition

Visual Basic .NET Public Property Midline As Integer
C# public int Midline { get; set; }
Managed C++ public: __property int* get_Midline();
public: __property void set_Midline(int*);

Property Value

System.Int32. The midline height of the guide in HIMETRIC units.

This property is read/write. This property has no default value.

Remarks

The value is 0 if the midline is not present.

Examples

[C#]

This C# example sets all of the values in the guide simultaneously.

private void ResetGuideSettings(
    ref RecognizerGuide theRecognizerGuide,
    int columns,
    int rows,
    int midline,
    Rectangle drawnBox,
    Rectangle writingBox)
{
    theRecognizerGuide.Columns = columns;
    theRecognizerGuide.Rows = rows;
    theRecognizerGuide.Midline = midline;
    theRecognizerGuide.DrawnBox = drawnBox;
    theRecognizerGuide.WritingBox = writingBox;
}

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example sets all of the values in the guide simultaneously.

Private Sub ResetGuideSettings( _
ByRef theRecognizerGuide As RecognizerGuide, _
ByVal columns As Integer, _
ByVal rows As Integer, _
ByVal midline As Integer, _
ByVal drawnBox As Rectangle, _
ByVal writingBox As Rectangle)
    theRecognizerGuide.Columns = columns
    theRecognizerGuide.Rows = rows
    theRecognizerGuide.Midline = midline
    theRecognizerGuide.DrawnBox = drawnBox
    theRecognizerGuide.WritingBox = writingBox
End Sub