Metodo InkAnalyzer.GetAlternates
Aggiornamento: novembre 2007
Restituisce un oggetto AnalysisAlternateCollection contenente fino a 10 alternative di analisi per tutti gli input penna associati all'analizzatore dell'input penna.
Spazio dei nomi: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.dll)
Sintassi
'Dichiarazione
Public Function GetAlternates As AnalysisAlternateCollection
'Utilizzo
Dim instance As InkAnalyzer
Dim returnValue As AnalysisAlternateCollection
returnValue = instance.GetAlternates()
public AnalysisAlternateCollection GetAlternates()
public:
AnalysisAlternateCollection^ GetAlternates()
public AnalysisAlternateCollection GetAlternates()
public function GetAlternates() : AnalysisAlternateCollection
Valore restituito
Tipo: System.Windows.Ink.AnalysisAlternateCollection
Fino a 10 delle prime alternative di analisi per tutti gli input penna associati all'analizzatore dell'input penna.
Note
La prima alternativa viene restituita come prima alternativa dell'insieme.
Esempi
In questo esempio vengono ottenute le prime dieci alternative per tutti gli input penna associati all'oggetto InkAnalyzer denominato theInkAnalyzer. Vengono quindi aggiunte le stringhe riconosciute per le alternative all'oggetto StringCollection denominato theAlternateStrings.
' Get analysis alternates for the ink analyzer and add the
' recognized strings to a string collection.
theAlternateCollection = Me.theInkAnalyzer.GetAlternates()
theAlternateStrings.Clear()
For Each theAlternate As AnalysisAlternate In theAlternateCollection
theAlternateStrings.Add(theAlternate.RecognizedString)
Next theAlternate
// Get analysis alternates for the ink analyzer and add the
// recognized strings to a string collection.
theAlternateCollection = this.theInkAnalyzer.GetAlternates();
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