Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
StrokeType Enumeration
Collapse the table of content
Expand the table of content

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
Assembly:  IAWinFX (in IAWinFX.dll)

public enum StrokeType

Member nameDescription
UnspecifiedIndicates that the stroke may be part of a drawing or writing.
WritingIndicates that the stroke is part of writing.
DrawingIndicates that the stroke is part of a drawing.

The following example shows part of a StrokeCollected event handler, in which e is the InkCanvasStrokeCollectedEventArgs object. The example checks the Stroke to see if it has been drawn below a margin named drawingMargin. If the top of the stroke is below drawingMargin, then the InkAnalyzer, named theInkAnalyzer, is set to analyze the stroke as a drawing stroke, rather than as a handwriting stroke.

if (e.Stroke.GetBounds().Top > drawingMargin)
{
    theInkAnalyzer.SetStrokeType(e.Stroke, StrokeType.Drawing);
}

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.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2015 Microsoft