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.
Ruft die Anzahl der Spalten für die recognition guide ab oder legt sie fest.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.dll)
Syntax
'Declaration
Public Property Columns As Integer
'Usage
Dim instance As InkRecognizerGuide
Dim value As Integer
value = instance.Columns
instance.Columns = value
public int Columns { get; set; }
public:
property int Columns {
int get ();
void set (int value);
}
/** @property */
public int get_Columns()
/** @property */
public void set_Columns(int value)
public function get Columns () : int
public function set Columns (value : int)
Eigenschaftenwert
Typ: System.Int32
Die Anzahl der Spalten für die Freihandführung.
Hinweise
Die Spaltenbreite wird von der Größe des gezeichneten Felds bestimmt. Verwenden Sie die Eigenschaften DrawnBoxTop, DrawnBoxLeft, DrawnBoxBottom und DrawnBoxRight, um das gezeichnete Feld abzurufen oder festzulegen.
Verwenden Sie die Werte der Eigenschaften Columns und Rows, um die Art der zu erkennenden Eingaben zu steuern, die Sie verwenden möchten. Wenn sowohl Columns als auch Rows größer als 0 (null) sind, wird die Eingabe in Feldern verwendet. In der folgenden Tabelle werden potenzielle Eingabemodi und die Werte aufgelistet, auf die die Columns-Eigenschaft und die Rows-Eigenschaft für die einzelnen Modi festgelegt werden sollen.
Für die folgenden Eingaben |
legen Sie die Rows-Eigenschaft wie folgt fest: |
Legen Sie außerdem die Columns-Eigenschaft wie folgt fest: |
|---|---|---|
Freie Eingabe |
0 |
0 |
Eingabe auf vertikalen Zeilen mit 1 Zeile |
0 |
1 |
Eingabe auf vertikalen Zeilen mit n Zeilen |
0 |
N |
Eingabe auf horizontalen Zeilen mit 1 Zeile |
1 |
0 |
Eingabe auf horizontalen Zeilen mit n Zeilen |
n |
0 |
Eingabe in Feldern mit 1 Feld |
1 |
1 |
Eingabe in Feldern bei 1 Spalte mit n Feldern |
1 |
N |
Eingabe in ein Feldraster mit x Zeilen und z Spalten |
x |
Z |
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
InkRecognizerGuideDrawnBox()