Divider.Divider(Strokes, RecognizerContext) Constructor
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 Divider (
Strokes strokes,
RecognizerContext recognizerContext
)
public function Divider (
strokes : Strokes,
recognizerContext : RecognizerContext
)
Not applicable.
Parameters
- recognizerContext
The RecognizerContext object to place in the RecognizerContext property of the new Divider object.
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 a 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.
Example
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 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
Divider
Divider.LineHeight
Divider.RecognizerContext
Divider.Strokes
Recognizer.Capabilities