Condividi tramite


Metodo InkAnalyzer.GetAlternates (Strokes)

Aggiornamento: novembre 2007

Restituisce fino a 10 alternative di analisi per i tratti specificati.

Spazio dei nomi:  Microsoft.Ink
Assembly:  Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)

Sintassi

'Dichiarazione
Public Function GetAlternates ( _
    strokes As Strokes _
) As AnalysisAlternateCollection
'Utilizzo
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

Parametri

Valore restituito

Tipo: Microsoft.Ink.AnalysisAlternateCollection
Le prime 10 alternative di analisi al massimo per strokes.

Note

La prima alternativa viene restituita come prima alternativa dell'insieme. Se sono presenti più di 10 alternative, vengono restituiti solo le prime 10.

Gli oggetti Stroke presenti in strokes non devono rappresentare aree adiacenti del documento.

Esempi

In questo esempio vengono ottenute le prime 10 alternative al massimo per l'oggetto Strokes, theStrokes associato all'oggetto InkAnalyzer, theInkAnalyzer. Vengono quindi aggiunte le stringhe riconosciute per le alternative a 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);
}

Piattaforme

Windows Vista

.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.

Informazioni sulla versione

.NET Framework

Supportato in: 3.0

Vedere anche

Riferimenti

InkAnalyzer Classe

Membri InkAnalyzer

Overload GetAlternates

Spazio dei nomi Microsoft.Ink

Microsoft.Ink.AnalysisAlternate

Microsoft.Ink.AnalysisAlternateCollection

Microsoft.Ink.Stroke

Microsoft.Ink.Strokes