共用方式為


RecognizerGuide.WritingBox Property

RecognizerGuide.WritingBox Property

Gets or sets the invisible writing area of the guide box in which writing can actually take place.

Definition

Visual Basic .NET Public Property WritingBox As Rectangle
C# public Rectangle WritingBox { get; set; }
Managed C++ public: __property Rectangle* get_WritingBox();
public: __property void set_WritingBox(Rectangle*);

Property Value

System.Drawing.Rectangle. The rectangular writing area of the guide box in ink space coordinates.

This property is read/write. This property has no default value.

Remarks

The writing box provides a margin of error to users who write outside the drawn box – the lines that are physically drawn on the tablet's screen within which users write. You can use the DrawnBox property to set the drawn box.

Examples

[C#]

This C# example sets all of the values in the guide simultaneously.

private void ResetGuideSettings(
    ref RecognizerGuide theRecognizerGuide,
    int columns,
    int rows,
    int midline,
    Rectangle drawnBox,
    Rectangle writingBox)
{
    theRecognizerGuide.Columns = columns;
    theRecognizerGuide.Rows = rows;
    theRecognizerGuide.Midline = midline;
    theRecognizerGuide.DrawnBox = drawnBox;
    theRecognizerGuide.WritingBox = writingBox;
}

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example sets all of the values in the guide simultaneously.

Private Sub ResetGuideSettings( _
ByRef theRecognizerGuide As RecognizerGuide, _
ByVal columns As Integer, _
ByVal rows As Integer, _
ByVal midline As Integer, _
ByVal drawnBox As Rectangle, _
ByVal writingBox As Rectangle)
    theRecognizerGuide.Columns = columns
    theRecognizerGuide.Rows = rows
    theRecognizerGuide.Midline = midline
    theRecognizerGuide.DrawnBox = drawnBox
    theRecognizerGuide.WritingBox = writingBox
End Sub

See Also