RecognizerGuide.WritingBox Property
Gets or sets the invisible writing area of the recognition guide in which writing can actually take place.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)
Syntax
'Declaration
Public Property WritingBox As Rectangle
'Usage
Dim instance As RecognizerGuide
Dim value As Rectangle
value = instance.WritingBox
instance.WritingBox = value
public Rectangle WritingBox { get; set; }
public:
property Rectangle WritingBox {
Rectangle get ();
void set (Rectangle value);
}
/** @property */
public Rectangle get_WritingBox ()
/** @property */
public void set_WritingBox (Rectangle value)
public function get WritingBox () : Rectangle
public function set WritingBox (value : Rectangle)
Not applicable.
Property Value
The rectangular writing area of the guide box, in ink space coordinates.
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. Use the DrawnBox property to set the drawn box.
Example
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;
}
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
Platforms
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
RecognizerGuide Structure
RecognizerGuide Members
Microsoft.Ink Namespace
RecognizerGuide.DrawnBox