共用方式為


InkRecognizerGuide.DrawnBoxBottom 屬性

取得或設定實際繪製在手寫板螢幕上,而且是使用者書寫所在之矩形的底端座標。

命名空間:  System.Windows.Ink
組件:  IAWinFX (在 IAWinFX.dll 中)

語法

'宣告
Public Property DrawnBoxBottom As Double
'用途
Dim instance As InkRecognizerGuide
Dim value As Double

value = instance.DrawnBoxBottom

instance.DrawnBoxBottom = value
public double DrawnBoxBottom { get; set; }
public:
property double DrawnBoxBottom {
    double get ();
    void set (double value);
}
/** @property */
public double get_DrawnBoxBottom()
/** @property */
public  void set_DrawnBoxBottom(double value)
public function get DrawnBoxBottom () : double
public function set DrawnBoxBottom (value : double)

屬性值

型別:System.Double
實際繪製在手寫板螢幕上,而且是使用者書寫所在之矩形的底端座標。

備註

繪製方塊的界限是視覺提示,可指定書寫的所在位置。使用者通常會在各行界限內書寫。繪製方塊是由 DrawnBoxTopDrawnBoxLeft、DrawnBoxBottom 及 DrawnBoxRight 屬性指定。這些屬性僅供辨識器使用。設定這些屬性的動作本身並不會在顯示器上繪製視覺線索。您必須使用應用程式或控制項繪製視覺線索。

另一個矩形 (即書寫方塊) 是實際上會發生書寫的不可見的方塊。書寫方塊大於繪製方塊,當使用者在繪製方塊行外繪製筆墨時,可提供容錯邊界。書寫方塊是由 WritingBoxTopWritingBoxLeftWritingBoxBottomWritingBoxRight 屬性指定。

如果您嘗試將 DrawnBoxBottom 屬性設定為小於 AnalysisRegion.MinXY 或大於 AnalysisRegion.MaxXY,這個屬性會擲回 ArgumentOutOfRangeException

範例

下列動作會同時設定 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;

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求

版本資訊

.NET Framework

支援版本:3.0

請參閱

參考

InkRecognizerGuide 類別

InkRecognizerGuide 成員

System.Windows.Ink 命名空間