Divider.RecognizerContext Property
Gets or sets the RecognizerContext object that the Divider object uses for handwriting analysis.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public Property RecognizerContext As RecognizerContext
'Usage
Dim instance As Divider
Dim value As RecognizerContext
value = instance.RecognizerContext
instance.RecognizerContext = value
public RecognizerContext RecognizerContext { get; set; }
public:
property RecognizerContext^ RecognizerContext {
RecognizerContext^ get ();
void set (RecognizerContext^ value);
}
public function get RecognizerContext () : RecognizerContext
public function set RecognizerContext (value : RecognizerContext)
Property Value
Type: Microsoft.Ink.RecognizerContext
The RecognizerContext object that the Divider object uses for handwriting analysis.
Remarks
If the RecognizerContext property is set, it should be done immediately after constructing the Divider object. An error is generated if you attempt to set the RecognizerContext property after either: setting the Divider.Strokes property, attempting to set it more than once or calling the Divider.Divide method.
In addition, this property generates an error if you assign a recognizer context that:
Is not a text recognizer.
Does not support free input.
If the value of the RecognizerContext property is Null when strokes are assigned to the Divider object, then the Divider object uses no recognizer context.
Note
The Divider object uses the default property settings of the RecognizerContext object; however, the Divider object has its own Strokes collection. It therefore ignores any strokes assigned to the RecognizerContext object.
Examples
This C# example creates a Divider object, theDivider, and explicitly assigns the default RecognizerContext object to theDivider.
Divider theDivider = new Divider();
theDivider.RecognizerContext = new RecognizerContext();
This Microsoft® Visual Basic .NET example creates a Divider object, theDivider, and explicitly assigns the default RecognizerContext object to theDivider.
Dim theDivider As Divider = New Divider(theStrokes)
theDivider.RecognizerContext = New RecognizerContext()
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0