Share via


InkAnalyzer.SetStrokesType Method

Changes the type of each stroke in a Strokes collection.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in microsoft.ink.analysis.dll)

Syntax

'Declaration
Public Sub SetStrokesType ( _
    strokes As Strokes, _
    strokeType As StrokeType _
)
'Usage
Dim instance As InkAnalyzer
Dim strokes As Strokes
Dim strokeType As StrokeType

instance.SetStrokesType(strokes, strokeType)
public void SetStrokesType (
    Strokes strokes,
    StrokeType strokeType
)
public:
void SetStrokesType (
    Strokes^ strokes, 
    StrokeType strokeType
)
public void SetStrokesType (
    Strokes strokes, 
    StrokeType strokeType
)
public function SetStrokesType (
    strokes : Strokes, 
    strokeType : StrokeType
)
Not applicable.

Parameters

  • strokes
    The collection of strokes to which to assign strokeType.
  • strokeType
    The stroke type to assign to the strokes in strokes.

Remarks

If a stroke's type is the Microsoft.Ink.StrokeType value Unspecified, the InkAnalyzer classifies the stroke during ink analysis. Otherwise, the InkAnalyzer uses the type set on the stroke.

To get the type currently assigned to a stroke, call InkAnalyzer.GetStrokeType.

Example

This example assigns the StrokeType value, theStrokeType, to all of the strokes in the ContextNode, theContextNode, associated with the InkAnalyzer, theInkAnalyzer.

theInkAnalyzer.SetStrokesType(theContextNode.Strokes, theStrokeType)
theInkAnalyzer.SetStrokesType(theContextNode.Strokes, theStrokeType);

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

InkAnalyzer Class
InkAnalyzer Members
Microsoft.Ink Namespace
Microsoft.Ink.StrokeType