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 void SetStrokeType (
Stroke stroke,
StrokeType strokeType
)
public function SetStrokeType (
stroke : Stroke,
strokeType : StrokeType
)
Not applicable.
Parameters
- stroke
The stroke to which to assign strokeType.
- strokeType
The 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.
Example
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 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
Microsoft.Ink Namespace
Microsoft.Ink.StrokeType