Export (0) Print
Expand All

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)

public void SetStrokesType(
	Strokes strokes,
	StrokeType strokeType
)

Parameters

strokes
Type: Microsoft.Ink.Strokes

The collection of strokes to which to assign strokeType.

strokeType
Type: Microsoft.Ink.StrokeType

The stroke type to assign to the strokes in strokes.

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.

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

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.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft