Freigeben über


InkRecognizerGuide.Midline-Eigenschaft

Ruft die Höhe der Mittellinie ab oder legt diese fest. Die Mittellinienhöhe ist der Abstand von der Grundlinie zur Mittellinie des gezeichneten Felds.

Namespace:  System.Windows.Ink
Assembly:  IAWinFX (in IAWinFX.dll)

Syntax

'Declaration
Public Property Midline As Double
'Usage
Dim instance As InkRecognizerGuide
Dim value As Double

value = instance.Midline

instance.Midline = value
public double Midline { get; set; }
public:
property double Midline {
    double get ();
    void set (double value);
}
/** @property */
public double get_Midline()
/** @property */
public  void set_Midline(double value)
public function get Midline () : double
public function set Midline (value : double)

Eigenschaftenwert

Typ: System.Double
Die Mittellinienhöhe der Führungslinie.

Hinweise

Die Mittellinie entspricht einer imaginären horizontalen Linie, an der der obere Rand des Hauptteils der einzelnen Zeichen ausgerichtet wird. Dies schließt den Teil der Kleinbuchstaben aus, der über den Hauptteil hinausgeht.

Der Wert ist 0 (null), wenn keine Mittellinie vorhanden ist.

Beispiele

Im folgenden Code werden alle Werte im InkRecognizerGuide gleichzeitig festgelegt.

Dim guideBoxTop As Double = 0
Dim guideBoxBottom As Double = 50
Dim guideBoxLeft As Double = 0
Dim guideBoxRight As Double = 600

Dim WRITINGBOXMARGIN As Integer = 10

' Find the midline of the guide box.
Dim midline As Double = (guideBoxBottom - guideBoxTop) / 2 + guideBoxTop

theGuide.Rows = 1
theGuide.Columns = 0
theGuide.Midline = midline

theGuide.WritingBoxLeft = guideBoxLeft - WRITINGBOXMARGIN
theGuide.WritingBoxTop = guideBoxTop - WRITINGBOXMARGIN
theGuide.WritingBoxRight = guideBoxRight + WRITINGBOXMARGIN
theGuide.WritingBoxBottom = guideBoxBottom + WRITINGBOXMARGIN

theGuide.DrawnBoxLeft = guideBoxLeft
theGuide.DrawnBoxTop = guideBoxTop
theGuide.DrawnBoxRight = guideBoxRight
theGuide.DrawnBoxBottom = guideBoxBottom
double guideBoxTop = 0;
double guideBoxBottom = 50;
double guideBoxLeft = 0;
double guideBoxRight = 600;

const int WRITINGBOXMARGIN = 10;

// Find the midline of the guide box.
double midline = (guideBoxBottom - guideBoxTop) / 2 + guideBoxTop;

theGuide.Rows = 1;
theGuide.Columns = 0;
theGuide.Midline = midline;

theGuide.WritingBoxLeft = guideBoxLeft - WRITINGBOXMARGIN;
theGuide.WritingBoxTop = guideBoxTop - WRITINGBOXMARGIN;
theGuide.WritingBoxRight = guideBoxRight + WRITINGBOXMARGIN;
theGuide.WritingBoxBottom = guideBoxBottom + WRITINGBOXMARGIN;

theGuide.DrawnBoxLeft = guideBoxLeft;
theGuide.DrawnBoxTop = guideBoxTop;
theGuide.DrawnBoxRight = guideBoxRight;
theGuide.DrawnBoxBottom = guideBoxBottom;

Plattformen

Windows Vista

.NET Framework und .NET Compact Framework unterstützen nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.

Versionsinformationen

.NET Framework

Unterstützt in: 3.0

Siehe auch

Referenz

InkRecognizerGuide-Klasse

InkRecognizerGuide-Member

System.Windows.Ink-Namespace