Esta documentación está archivada y no tiene mantenimiento.

StrokeType (Enumeración)

Defines values that indicate whether or not a Stroke should be analyzed as part of a drawing or as part of writing.

Espacio de nombres: Microsoft.Ink
Ensamblado: Microsoft.Ink.Analysis (en microsoft.ink.analysis.dll)

public enum StrokeType
public enum StrokeType
public enum StrokeType

 Nombre de miembroDescripción
DrawingIndicates that the stroke is part of a drawing. 
UnspecifiedIndicates that the stroke might be part of a drawing or might be part of writing. 
WritingIndicates that the stroke is part of writing. 

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)
{
    theInkAnalyzer.SetStrokeType(e.Stroke, Microsoft.Ink.StrokeType.Drawing);
}

Windows XP Media Center

Microsoft .NET Framework 3.0 es compatible con Windows Vista, Microsoft Windows XP SP2 y Windows Server 2003 SP1.

.NET Framework

Compatible con: 3.0
Mostrar: