Sdílet prostřednictvím


InkAnalyzer.SetStrokesType Method

Changes the type of each stroke in a StrokeCollection.

Namespace:  System.Windows.Ink
Assembly:  IAWinFX (in IAWinFX.dll)

Syntax

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

instance.SetStrokesType(strokes, strokeType)
public void SetStrokesType(
    StrokeCollection strokes,
    StrokeType strokeType
)
public:
void SetStrokesType(
    StrokeCollection^ strokes, 
    StrokeType strokeType
)
public function SetStrokesType(
    strokes : StrokeCollection, 
    strokeType : StrokeType
)

Parameters

Remarks

If a stroke's type is the System.Windows.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 GetStrokeType.

Examples

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

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

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

System.Windows.Ink Namespace

System.Windows.Ink.StrokeType