InkAnalyzer.GetAlternates - метод (Strokes, Int32)
Обновлен: Ноябрь 2007
Returns up to the specified number of analysis alternates for the specified strokes.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.dll)
Синтаксис
'Декларация
Public Function GetAlternates ( _
strokes As Strokes, _
maximumAlternates As Integer _
) As AnalysisAlternateCollection
'Применение
Dim instance As InkAnalyzer
Dim strokes As Strokes
Dim maximumAlternates As Integer
Dim returnValue As AnalysisAlternateCollection
returnValue = instance.GetAlternates(strokes, _
maximumAlternates)
public AnalysisAlternateCollection GetAlternates(
Strokes strokes,
int maximumAlternates
)
public:
AnalysisAlternateCollection^ GetAlternates(
Strokes^ strokes,
int maximumAlternates
)
public AnalysisAlternateCollection GetAlternates(
Strokes strokes,
int maximumAlternates
)
public function GetAlternates(
strokes : Strokes,
maximumAlternates : int
) : AnalysisAlternateCollection
Параметры
- strokes
Тип: Microsoft.Ink.Strokes
The strokes for which to get analysis alternates.
- maximumAlternates
Тип: System.Int32
The number of analysis alternates to return.
Возвращаемое значение
Тип: Microsoft.Ink.AnalysisAlternateCollection
Up to maximumAlternates of the top analysis alternates for strokes.
Заметки
The top alternate is returned as the first alternate of the collection.
The Stroke objects in strokes do not have to represent adjacent areas of the document.
Примеры
This example gets up to five 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 5 analysis alternates for the strokes collection and add the
' recognized string to a collection.
theAlternateCollection = Me.theInkAnalyzer.GetAlternates(theStrokes, 5)
theAlternateStrings.Clear()
Dim theAlternate As Microsoft.Ink.AnalysisAlternate
For Each theAlternate In theAlternateCollection
theAlternateStrings.Add(theAlternate.RecognizedString)
Next theAlternate
// Get 5 analysis alternates for the strokes collection and add the
// recognized string to a collection.
theAlternateCollection = this.theInkAnalyzer.GetAlternates(theStrokes, 5);
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
См. также
Ссылки
Microsoft.Ink - пространство имен
Microsoft.Ink.AnalysisAlternate