Condividi tramite


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 void SetStrokesType (
    StrokeCollection strokes, 
    StrokeType strokeType
)
public function SetStrokesType (
    strokes : StrokeCollection, 
    strokeType : StrokeType
)
Not applicable.

Parameters

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

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.

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
System.Windows.Ink Namespace
System.Windows.Ink.StrokeType