InkAnalyzerBase.GetAlternates Method (array<Int32[], Int32)
Returns up to the specified number of analysis alternates for the specified strokes.
Namespace: System.Windows.Ink.AnalysisCore
Assembly: IACore (in IACore.dll)
Syntax
'Declaration
Public Function GetAlternates ( _
strokeIds As Integer(), _
maximumAlternates As Integer _
) As AnalysisAlternateBaseCollection
'Usage
Dim instance As InkAnalyzerBase
Dim strokeIds As Integer()
Dim maximumAlternates As Integer
Dim returnValue As AnalysisAlternateBaseCollection
returnValue = instance.GetAlternates(strokeIds, _
maximumAlternates)
public AnalysisAlternateBaseCollection GetAlternates(
int[] strokeIds,
int maximumAlternates
)
public:
AnalysisAlternateBaseCollection^ GetAlternates(
array<int>^ strokeIds,
int maximumAlternates
)
public function GetAlternates(
strokeIds : int[],
maximumAlternates : int
) : AnalysisAlternateBaseCollection
Parameters
strokeIds
Type: array<System.Int32[]An array containing the identifiers of the strokes for which to get analysis alternates.
maximumAlternates
Type: System.Int32The number of analysis alternates to return.
Return Value
Type: System.Windows.Ink.AnalysisCore.AnalysisAlternateBaseCollection
Up to maximumAlternate of the top analysis alternates for the specified strokes.
Remarks
The top alternate is returned as the first alternate of the collection.
The specified strokes do not have to represent adjacent areas of the document.
Examples
The following example gets up to five alternates for the strokes identified in the 32-bit signed integer array, theStrokeIds. The specified strokes are strokes assigned to the InkAnalyzerBase, theInkAnalyzerBase.
' Retrieve 5 alternates for the specified strokes.
Dim theAlternates As System.Windows.Ink.AnalysisCore.AnalysisAlternateBaseCollection = _
theInkAnalyzerBase.GetAlternates(theStrokeIds, 5)
// Retrieve 5 alternates for the specified strokes.
System.Windows.Ink.AnalysisCore.AnalysisAlternateBaseCollection theAlternates =
theInkAnalyzerBase.GetAlternates(theStrokeIds, 5);
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
See Also
Reference
System.Windows.Ink.AnalysisCore Namespace
System.Windows.Ink.AnalysisCore.AnalysisAlternateBase
System.Windows.Ink.AnalysisCore.AnalysisAlternateBaseCollection