StrokeType Enumeration
Defines values that indicate whether or not a Stroke should be analyzed as part of a drawing or as part of writing.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)
Syntax
'Declaration
Public Enumeration StrokeType
'Usage
Dim instance As StrokeType
public enum StrokeType
public enum class StrokeType
public enum StrokeType
Members
Member name | Description | |
---|---|---|
Unspecified | Indicates that the stroke might be part of a drawing or might be part of writing. | |
Writing | Indicates that the stroke is part of writing. | |
Drawing | Indicates that the stroke is part of a drawing. |
Remarks
To indicate the StrokeType, use InkAnalyzer.SetStrokeType and InkAnalyzer.SetStrokesType.
Examples
The following example shows part of a Stroke event handler, in which e is the InkCollectorStrokeEventArgs object. The Stroke is checked to see if it has been drawn below a margin, drawingMargin. If the top of the stroke is below drawingMargin, then the InkAnalyzer, theInkAnalyzer, is set to analyze the stroke as a drawing stroke, rather than as a handwriting stroke.
If e.Stroke.GetBoundingBox().Top > drawingMargin Then
theInkAnalyzer.SetStrokeType(e.Stroke, Microsoft.Ink.StrokeType.Drawing)
End If
if (e.Stroke.GetBoundingBox().Top > drawingMargin)
{
theInkAnalyzer.SetStrokeType(e.Stroke, Microsoft.Ink.StrokeType.Drawing);
}
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