Sdílet prostřednictvím


InkAnalyzerBase.GetAlternates Method (array<Int32[])

Returns up to 10 analysis alternates for the specified strokes.

Namespace:  System.Windows.Ink.AnalysisCore
Assembly:  IACore (in IACore.dll)

Syntax

'Declaration
Public Function GetAlternates ( _
    strokeIds As Integer() _
) As AnalysisAlternateBaseCollection
'Usage
Dim instance As InkAnalyzerBase 
Dim strokeIds As Integer()
Dim returnValue As AnalysisAlternateBaseCollection 

returnValue = instance.GetAlternates(strokeIds)
public AnalysisAlternateBaseCollection GetAlternates(
    int[] strokeIds
)
public:
AnalysisAlternateBaseCollection^ GetAlternates(
    array<int>^ strokeIds
)
public function GetAlternates(
    strokeIds : int[]
) : AnalysisAlternateBaseCollection

Parameters

  • strokeIds
    Type: array<System.Int32[]

    An array containing the identifiers of the strokes for which to get analysis alternates.

Return Value

Type: System.Windows.Ink.AnalysisCore.AnalysisAlternateBaseCollection
Up to 10 of the top analysis alternates for the specified strokes.

Remarks

The top alternate is returned as the first alternate of the collection. If there are more that 10 alternates, only the first 10 are returned.

The specified strokes do not have to represent adjacent areas of the document.

Examples

The following example gets up to 10 of the top alternates for the strokes identified in the 32-bit signed integer array, theStrokeIds. The specified strokes are strokes assigned to the InkAnalyzerBase, theInkAnalyzerBase.

' Retrieve alternates for the specified strokes. 
Dim theAlternates As System.Windows.Ink.AnalysisCore.AnalysisAlternateBaseCollection = _
    theInkAnalyzerBase.GetAlternates(theStrokeIds)
// Retrieve alternates for the specified strokes.
System.Windows.Ink.AnalysisCore.AnalysisAlternateBaseCollection theAlternates =
    theInkAnalyzerBase.GetAlternates(theStrokeIds);

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

InkAnalyzerBase Class

InkAnalyzerBase Members

GetAlternates Overload

System.Windows.Ink.AnalysisCore Namespace

System.Windows.Ink.AnalysisCore.AnalysisAlternateBase

System.Windows.Ink.AnalysisCore.AnalysisAlternateBaseCollection