InkAnalyzer.SetStrokeType Method
Changes the stroke type of a Stroke.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)
Syntax
'Declaration
Public Sub SetStrokeType ( _
stroke As Stroke, _
strokeType As StrokeType _
)
'Usage
Dim instance As InkAnalyzer
Dim stroke As Stroke
Dim strokeType As StrokeType
instance.SetStrokeType(stroke, strokeType)
public void SetStrokeType(
Stroke stroke,
StrokeType strokeType
)
public:
void SetStrokeType(
Stroke^ stroke,
StrokeType strokeType
)
public function SetStrokeType(
stroke : Stroke,
strokeType : StrokeType
)
Parameters
stroke
Type: Microsoft.Ink.StrokeThe stroke to which to assign strokeType.
strokeType
Type: Microsoft.Ink.StrokeTypeThe stroke type to assign to the strokes in strokes.
Remarks
If the stroke's type is the Microsoft.Ink.StrokeType value Unspecified, then 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.
' Iterate through the strokes within the context node and update
' the stroke type of those strokes.
Dim theStroke As Microsoft.Ink.Stroke
For Each theStroke In theContextNode.Strokes
theInkAnalyzer.SetStrokeType(theStroke, theStrokeType)
Next theStroke
// Iterate through the strokes within the context node and update
// the stroke type of those strokes.
foreach (Microsoft.Ink.Stroke theStroke in theContextNode.Strokes)
{
theInkAnalyzer.SetStrokeType(theStroke, 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