Proprietà InkRecognizerGuide.WritingBoxRight
Aggiornamento: novembre 2007
Ottiene o imposta la coordinata destra dell'area di scrittura invisibile della guida del sistema di riconoscimento in cui è possibile scrivere.
Spazio dei nomi: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.dll)
Sintassi
'Dichiarazione
Public Property WritingBoxRight As Double
'Utilizzo
Dim instance As InkRecognizerGuide
Dim value As Double
value = instance.WritingBoxRight
instance.WritingBoxRight = value
public double WritingBoxRight { get; set; }
public:
property double WritingBoxRight {
double get ();
void set (double value);
}
/** @property */
public double get_WritingBoxRight()
/** @property */
public void set_WritingBoxRight(double value)
public function get WritingBoxRight () : double
public function set WritingBoxRight (value : double)
Valore proprietà
Tipo: System.Double
Coordinata destra dell'area di scrittura invisibile dell'oggetto InkRecognizerGuide in cui è possibile scrivere.
Note
La casella di scrittura fornisce un margine di errore agli utenti che scrivono all'esterno della casella disegnata. Utilizzare le proprietà DrawnBoxTop, DrawnBoxLeft, DrawnBoxBottom e DrawnBoxRight per impostare la casella disegnata.
La proprietà WritingBoxRight genera un'eccezione ArgumentOutOfRangeException quando viene impostata su un valore minore di AnalysisRegion.MinXY o maggiore di AnalysisRegion.MaxXY.
Esempi
Con il codice seguente vengono impostati contemporaneamente tutti i valori nell'oggetto InkRecognizerGuide.
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;
Piattaforme
Windows Vista
.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.
Informazioni sulla versione
.NET Framework
Supportato in: 3.0