Compartir a través de


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);
}
/** @property */
public RecognizerContext get_RecognizerContext ()

/** @property */
public void set_RecognizerContext (RecognizerContext value)
public function get RecognizerContext () : RecognizerContext

public function set RecognizerContext (value : RecognizerContext)
Not applicable.

Property Value

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.

Example

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 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

Divider Class
Divider Members
Microsoft.Ink Namespace
RecognizerContext
Divider.Strokes