Поделиться через


StrokeType - перечисление

Обновлен: Ноябрь 2007

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

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.dll)

Синтаксис

'Декларация
Public Enumeration StrokeType
'Применение
Dim instance As StrokeType
public enum StrokeType
public enum class StrokeType
public enum StrokeType
public enum StrokeType

Члены

Имя члена Описание
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.

Заметки

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

Примеры

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);
            }

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

Microsoft.Ink - пространство имен

SetStrokeType