Metodo InkAnalyzer.GetAlternates (StrokeCollection)
Aggiornamento: novembre 2007
Restituisce un oggetto AnalysisAlternateCollection contenente fino a 10 alternative di analisi per i tratti specificati.
Spazio dei nomi: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.dll)
Sintassi
'Dichiarazione
Public Function GetAlternates ( _
strokes As StrokeCollection _
) As AnalysisAlternateCollection
'Utilizzo
Dim instance As InkAnalyzer
Dim strokes As StrokeCollection
Dim returnValue As AnalysisAlternateCollection
returnValue = instance.GetAlternates(strokes)
public AnalysisAlternateCollection GetAlternates(
StrokeCollection strokes
)
public:
AnalysisAlternateCollection^ GetAlternates(
StrokeCollection^ strokes
)
public AnalysisAlternateCollection GetAlternates(
StrokeCollection strokes
)
public function GetAlternates(
strokes : StrokeCollection
) : AnalysisAlternateCollection
Parametri
- strokes
Tipo: System.Windows.Ink.StrokeCollection
Tratti per cui vengono acquisite le alternative di analisi.
Valore restituito
Tipo: System.Windows.Ink.AnalysisAlternateCollection
Fino a 10 delle prime alternative di analisi per strokes.
Note
La prima alternativa viene restituita come prima alternativa dell'insieme. Se sono presenti più di 10 alternative, vengono restituite 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 per l'oggetto StrokeCollection denominato theStrokes associate all'oggetto InkAnalyzer denominato theInkAnalyzer. Vengono quindi aggiunte le stringhe riconosciute per le alternative all'oggetto 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()
For Each theAlternate As AnalysisAlternate 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 (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
Spazio dei nomi System.Windows.Ink
System.Windows.Ink.AnalysisAlternate