InkAnalyzer.GetAlternates Method
Returns a AnalysisAlternateCollection that contains up to 10 analysis alternates for all ink associated with the ink analyzer.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.dll)
Syntax
'Declaration
Public Function GetAlternates As AnalysisAlternateCollection
'Usage
Dim instance As InkAnalyzer
Dim returnValue As AnalysisAlternateCollection
returnValue = instance.GetAlternates()
public AnalysisAlternateCollection GetAlternates()
public:
AnalysisAlternateCollection^ GetAlternates()
public function GetAlternates() : AnalysisAlternateCollection
Return Value
Type: System.Windows.Ink.AnalysisAlternateCollection
Up to 10 of the top analysis alternates for all ink associated with the ink analyzer.
Remarks
The top alternate is returned as the first alternate of the collection.
Examples
This example gets the top ten alternates for all the ink associated with the InkAnalyzer named theInkAnalyzer. It then adds the recognized strings for the alternates to the StringCollection, named 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);
}
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0