Share via


Divider Constructor (Strokes, RecognizerContext)

Initializes a new instance of the Divider class.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Public Sub New ( _
    strokes As Strokes, _
    recognizerContext As RecognizerContext _
)
'Usage
Dim strokes As Strokes 
Dim recognizerContext As RecognizerContext 

Dim instance As New Divider(strokes, _
    recognizerContext)
public Divider(
    Strokes strokes,
    RecognizerContext recognizerContext
)
public:
Divider(
    Strokes^ strokes, 
    RecognizerContext^ recognizerContext
)
public function Divider(
    strokes : Strokes, 
    recognizerContext : RecognizerContext
)

Parameters

Remarks

If you use this constructor overload, the Divider object contains the stroke collection and uses the RecognizerContext object. However, you will be unable able to update its LineHeight property.

If the recognizerContext parameter is nulla null reference (Nothing in Visual Basic), the RecognizerContext object is not assigned 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

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

Divider theDivider = new Divider(theStrokes, theRecognizerContext);

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)

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

See Also

Reference

Divider Class

Divider Members

Divider Overload

Microsoft.Ink Namespace

Divider

Divider.LineHeight

Divider.RecognizerContext

Divider.Strokes

Recognizer.Capabilities