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


InkAnalyzer.GetAlternates - метод (Strokes)

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

Returns up to 10 analysis alternates for the specified strokes.

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

Синтаксис

'Декларация
Public Function GetAlternates ( _
    strokes As Strokes _
) As AnalysisAlternateCollection
'Применение
Dim instance As InkAnalyzer
Dim strokes As Strokes
Dim returnValue As AnalysisAlternateCollection

returnValue = instance.GetAlternates(strokes)
public AnalysisAlternateCollection GetAlternates(
    Strokes strokes
)
public:
AnalysisAlternateCollection^ GetAlternates(
    Strokes^ strokes
)
public AnalysisAlternateCollection GetAlternates(
    Strokes strokes
)
public function GetAlternates(
    strokes : Strokes
) : AnalysisAlternateCollection

Параметры

Возвращаемое значение

Тип: Microsoft.Ink.AnalysisAlternateCollection
Up to 10 of the top analysis alternates for strokes.

Заметки

The top alternate is returned as the first alternate of the collection. If there are more that 10 alternates, only the first 10 are returned.

The Stroke objects in strokes do not have to represent adjacent areas of the document.

Примеры

This example gets up to 10 of the top alternates for the Strokes, theStrokes, associated with the InkAnalyzer, theInkAnalyzer. It then adds the recognized strings for the alternates to the System.Collections.Specialized.StringCollection, theAlternateStrings.

' Get analysis alternates for the strokes collection and add the
' recognized strings to a string collection.
theAlternateCollection = Me.theInkAnalyzer.GetAlternates(theStrokes)
theAlternateStrings.Clear()
Dim theAlternate As Microsoft.Ink.AnalysisAlternate
For Each theAlternate In theAlternateCollection
    theAlternateStrings.Add(theAlternate.RecognizedString)
Next theAlternate
// Get analysis alternates for the strokes collection and add the
// recognized strings to a string collection.
theAlternateCollection = this.theInkAnalyzer.GetAlternates(theStrokes);
theAlternateStrings.Clear();
foreach (Microsoft.Ink.AnalysisAlternate theAlternate
    in theAlternateCollection)
{
    theAlternateStrings.Add(theAlternate.RecognizedString);
}

Платформы

Windows Vista

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

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

.NET Framework

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

См. также

Ссылки

InkAnalyzer Класс

InkAnalyzer - члены

GetAlternates - перегрузка

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

Microsoft.Ink.AnalysisAlternate

Microsoft.Ink.AnalysisAlternateCollection

Microsoft.Ink.Stroke

Microsoft.Ink.Strokes