Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Initialisiert eine neue Instanz der InkRecognizerGuide-Klasse.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.dll)
Syntax
'Declaration
Public Sub New ( _
rows As Integer, _
columns As Integer, _
midline As Double, _
writingBoxLeft As Double, _
writingBoxTop As Double, _
writingBoxRight As Double, _
writingBoxBottom As Double, _
drawnBoxLeft As Double, _
drawnBoxTop As Double, _
drawnBoxRight As Double, _
drawnBoxBottom As Double _
)
'Usage
Dim rows As Integer
Dim columns As Integer
Dim midline As Double
Dim writingBoxLeft As Double
Dim writingBoxTop As Double
Dim writingBoxRight As Double
Dim writingBoxBottom As Double
Dim drawnBoxLeft As Double
Dim drawnBoxTop As Double
Dim drawnBoxRight As Double
Dim drawnBoxBottom As Double
Dim instance As New InkRecognizerGuide(rows, columns, _
midline, writingBoxLeft, writingBoxTop, _
writingBoxRight, writingBoxBottom, _
drawnBoxLeft, drawnBoxTop, drawnBoxRight, _
drawnBoxBottom)
public InkRecognizerGuide(
int rows,
int columns,
double midline,
double writingBoxLeft,
double writingBoxTop,
double writingBoxRight,
double writingBoxBottom,
double drawnBoxLeft,
double drawnBoxTop,
double drawnBoxRight,
double drawnBoxBottom
)
public:
InkRecognizerGuide(
int rows,
int columns,
double midline,
double writingBoxLeft,
double writingBoxTop,
double writingBoxRight,
double writingBoxBottom,
double drawnBoxLeft,
double drawnBoxTop,
double drawnBoxRight,
double drawnBoxBottom
)
public InkRecognizerGuide(
int rows,
int columns,
double midline,
double writingBoxLeft,
double writingBoxTop,
double writingBoxRight,
double writingBoxBottom,
double drawnBoxLeft,
double drawnBoxTop,
double drawnBoxRight,
double drawnBoxBottom
)
public function InkRecognizerGuide(
rows : int,
columns : int,
midline : double,
writingBoxLeft : double,
writingBoxTop : double,
writingBoxRight : double,
writingBoxBottom : double,
drawnBoxLeft : double,
drawnBoxTop : double,
drawnBoxRight : double,
drawnBoxBottom : double
)
Parameter
- rows
Typ: System.Int32
- columns
Typ: System.Int32
- midline
Typ: System.Double
- writingBoxLeft
Typ: System.Double
Die linke Koordinate des unsichtbaren Schreibbereichs des Führungslinienfelds, in den geschrieben werden kann.
- writingBoxTop
Typ: System.Double
Die obere Koordinate des unsichtbaren Schreibbereichs des Führungslinienfelds, in den geschrieben werden kann.
- writingBoxRight
Typ: System.Double
Die rechte Koordinate des unsichtbaren Schreibbereichs des Führungslinienfelds, in den geschrieben werden kann.
- writingBoxBottom
Typ: System.Double
Die untere Koordinate des unsichtbaren Schreibbereichs des Führungslinienfelds, in den geschrieben werden kann.
- drawnBoxLeft
Typ: System.Double
Die linke Koordinate des Felds, das auf dem Tablettbildschirm gezeichnet ist und in das geschrieben werden kann.
- drawnBoxTop
Typ: System.Double
Die obere Koordinate des Felds, das auf dem Tablettbildschirm gezeichnet ist und in das geschrieben werden kann.
- drawnBoxRight
Typ: System.Double
Die rechte Koordinate des Felds, das auf dem Tablettbildschirm gezeichnet ist und in das geschrieben werden kann.
- drawnBoxBottom
Typ: System.Double
Die untere Koordinate des Felds, das auf dem Tablettbildschirm gezeichnet ist und in das geschrieben werden kann.
Hinweise
Das InkRecognizerGuide gibt durch zwei Rechtecke die Begrenzungen an, innerhalb derer Freihandeingaben durchgeführt werden können. Diese zwei Rechtecke sind das gezeichnete Feld und das Schreibfeld. Die Begrenzungen des gezeichneten Felds sind visuelle Hinweise, wohingegen die Begrenzungen des Schreibfelds unsichtbar sind. Zusammen geben sie an, wo geschrieben werden kann. Der Benutzer schreibt normalerweise innerhalb der Grenzen der sichtbaren Linien. Das gezeichnete Feld wird von den Eigenschaften DrawnBoxTop, DrawnBoxLeft, DrawnBoxBottom und DrawnBoxRight angegeben. Diese Eigenschaften sind nur für die Verwendung durch das Erkennungsmodul vorgesehen. Durch das Festlegen allein werden keine visuellen Hinweise auf der Anzeige gezeichnet. Sie müssen die visuellen Hinweise mit der Anwendung oder dem Steuerelement zeichnen.
Das Schreibfeld ist größer als das gezeichnete Feld und gewährt eine gewisse Toleranz, wenn Benutzer außerhalb der Ränder des gezeichneten Felds Freihandeingaben durchführen. Das Schreibfeld wird mit den Eigenschaften WritingBoxTop, WritingBoxLeft, WritingBoxBottom und WritingBoxRight angegeben.
Beispiele
Im folgenden Beispiel wird ein neues InkRecognizerGuide erstellt und der Guide-Eigenschaft eines AnalysisHintNode zugewiesen.
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