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)
'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
- strokes
Tipo: System.Windows.Ink.StrokeCollection
Tratti per cui vengono acquisite le alternative di analisi.
Tipo: System.Windows.Ink.AnalysisAlternateCollection
Fino a 10 delle prime alternative di analisi per strokes.
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.
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);
}
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.
Supportato in: 3.0
Spazio dei nomi System.Windows.Ink
System.Windows.Ink.AnalysisAlternate