InkAnalyzer.SetStrokeType - метод
Обновлен: Ноябрь 2007
Changes the stroke type of a Stroke.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.dll)
Синтаксис
'Декларация
Public Sub SetStrokeType ( _
stroke As Stroke, _
strokeType As StrokeType _
)
'Применение
Dim instance As InkAnalyzer
Dim stroke As Stroke
Dim strokeType As StrokeType
instance.SetStrokeType(stroke, strokeType)
public void SetStrokeType(
Stroke stroke,
StrokeType strokeType
)
public:
void SetStrokeType(
Stroke^ stroke,
StrokeType strokeType
)
public void SetStrokeType(
Stroke stroke,
StrokeType strokeType
)
public function SetStrokeType(
stroke : Stroke,
strokeType : StrokeType
)
Параметры
- stroke
Тип: Microsoft.Ink.Stroke
The stroke to which to assign strokeType.
- strokeType
Тип: Microsoft.Ink.StrokeType
The stroke type to assign to the strokes in strokes.
Заметки
If the stroke's type is the Microsoft.Ink.StrokeType value Unspecified, then the InkAnalyzer classifies the stroke during ink analysis. Otherwise, the InkAnalyzer uses the type set on the stroke.
To get the type currently assigned to a stroke, call InkAnalyzer.GetStrokeType.
Примеры
This example assigns the StrokeType value, theStrokeType, to all of the strokes in the ContextNode, theContextNode, associated with the InkAnalyzer, theInkAnalyzer.
' Iterate through the strokes within the context node and update
' the stroke type of those strokes.
Dim theStroke As Microsoft.Ink.Stroke
For Each theStroke In theContextNode.Strokes
theInkAnalyzer.SetStrokeType(theStroke, theStrokeType)
Next theStroke
// Iterate through the strokes within the context node and update
// the stroke type of those strokes.
foreach (Microsoft.Ink.Stroke theStroke in theContextNode.Strokes)
{
theInkAnalyzer.SetStrokeType(theStroke, theStrokeType);
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0