Share via


Divider.Divider Constructor

Divider.Divider Constructor

Initializes a new instance of the Divider class.

Definition

Visual Basic .NET Public Sub Divider( _
ByVal strokes As Strokes, _
ByVal recognizerContext As RecognizerContext _
)
C# public Divider(
Strokes strokes,
RecognizerContext recognizerContext
);
Managed C++ public: Divider(
Strokes *strokes,
RecognizerContext *recognizerContext
);

Parameters

strokes Microsoft.Ink.Strokes. The Strokes collection to place in the Strokes property of the new Divider object.
recognizerContext Microsoft.Ink.RecognizerContext. The RecognizerContext object to place in the RecognizerContext property of the new Divider object.

Remarks

If you use this overload of the constructor, the Divider object contains the specified strokes and uses the specified RecognizerContext object. You will not be able to update the Divider object's LineHeight property.

If the recognizerContext parameter is null, then the constructor does not assign a RecognizerContext object to the Divider object.

If the recognizer for the RecognizerContext object in the recognizerContext parameter is not a text recognizer or does not support the free input capability, then the constructor throws an exception and the Divider object is not created.

Examples

[C#]
This C# example creates a Divider that contains the Strokes collection, theStrokes, and uses the RecognizerContext object, theRecognizerContext.

Divider theDivider = new Divider(theStrokes, theRecognizerContext);

[Visual Basic .NET]
This Microsoft® Visual Basic® .NET example creates a Divider that contains the Strokes collection, theStrokes, and uses the RecognizerContext object, theRecognizerContext.

Dim theDivider As New Divider(theStrokes, theRecognizerContext)

See Also