共用方式為


Divider.RecognizerContext Property

Divider.RecognizerContext Property

Gets or sets the RecognizerContext object that the Divider object uses for handwriting analysis.

Definition

Visual Basic .NET Public Property RecognizerContext As RecognizerContext
C# public RecognizerContext RecognizerContext { get; set; }
Managed C++ public: __property RecognizerContext* get_RecognizerContext();
public: __property void set_RecognizerContext(RecognizerContext*);

Property Value

Microsoft.Ink.RecognizerContext. The RecognizerContext object that the Divider object uses for handwriting analysis.

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

Exceptions

ArgumentException Leave Site:
ArgumentException Leave Site:
ArgumentException Leave Site:
ObjectDisposedException Leave Site:

Remarks

If you set the RecognizerContext property, it should be the first thing you do after constructing the Divider object. An error will be generated if you attempt to set the RecognizerContext property after the Divider.Strokes property has been set, after a Divider.Divide call has been made, or if you attempt to set it more than one time.

In addition, this property generates an error if you assign a recognizer context to it 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

[C#]

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();

[Visual Basic .NET]

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

See Also