InkAnalyzer.SetStrokeType Method
Changes the stroke type of a Stroke.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.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: System.Windows.Ink.StrokeThe stroke assigned to strokeType.
strokeType
Type: System.Windows.Ink.StrokeTypeThe stroke type assigned to the strokes in strokes.
Remarks
If the stroke's type is the System.Windows.Ink.StrokeType value named 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 GetStrokeType.
Examples
This example assigns the StrokeType value named theStrokeType, to each of the strokes in the ContextNode (named theContextNode), that are associated with the InkAnalyzer (named theInkAnalyzer).
' Iterate through the strokes within the context node and update
' the stroke type of those strokes.
Dim theStroke As 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 (Stroke theStroke in theContextNode.Strokes)
{
theInkAnalyzer.SetStrokeType(theStroke, 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