Share via


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: System.Windows.Ink.AnalysisCore
Assembly: IACore (in iacore.dll)

Syntax

'Declaration
Public Enumeration StrokeType
'Usage
Dim instance As StrokeType
public enum StrokeType
public enum class StrokeType
public enum StrokeType
public enum StrokeType

Members

  Member name Description
Drawing Indicates that the stroke is part of a drawing. 
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. 

Remarks

To indicate the StrokeType, use InkAnalyzerBase.SetStrokeType and SetStrokesType.

Example

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 InkAnalyzerBase, theInkAnalyzerBase, is set to analyze the stroke as a drawing stroke, rather than as a handwriting stroke.

If e.Stroke.GetBoundingBox().Top > drawingMargin Then
    theInkAnalyzerBase.SetStrokeType(e.Stroke.Id, System.Windows.Ink.AnalysisCore.StrokeType.Drawing)
End If
if (e.Stroke.GetBoundingBox().Top > drawingMargin)
{
    theInkAnalyzerBase.SetStrokeType(e.Stroke.Id, System.Windows.Ink.AnalysisCore.StrokeType.Drawing);
}

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

System.Windows.Ink.AnalysisCore Namespace
SetStrokeType