InkRecognizerGuide.WritingBoxLeft 屬性
取得或設定辨識器輔助線之不可見書寫區域的左邊座標,使用者可能會在此輔助線內進行書寫。
命名空間: System.Windows.Ink
組件: IAWinFX (在 IAWinFX.dll 中)
語法
'宣告
Public Property WritingBoxLeft As Double
'用途
Dim instance As InkRecognizerGuide
Dim value As Double
value = instance.WritingBoxLeft
instance.WritingBoxLeft = value
public double WritingBoxLeft { get; set; }
public:
property double WritingBoxLeft {
double get ();
void set (double value);
}
/** @property */
public double get_WritingBoxLeft()
/** @property */
public void set_WritingBoxLeft(double value)
public function get WritingBoxLeft () : double
public function set WritingBoxLeft (value : double)
屬性值
型別:System.Double
InkRecognizerGuide 之不可見書寫區域的左邊座標,使用者可能會在此輔助線內進行書寫。
備註
當使用者在繪製方塊行外繪製筆墨時,書寫方塊可提供容錯邊界。使用 DrawnBoxTop、DrawnBoxLeft、DrawnBoxBottom 和 DrawnBoxRight 屬性可設定繪製方塊。
如果您嘗試將 WritingBoxLeft 屬性設定為小於 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