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 function SetStrokesType(
    strokes : Strokes, 
    strokeType : StrokeType
)

Parameters

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.

Examples

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

InkAnalyzer Class

InkAnalyzer Members

Microsoft.Ink Namespace

Microsoft.Ink.StrokeType