Sdílet prostřednictvím


InkAnalyzerBase.GetAlternates Method (ContextNodeBaseCollection)

Returns up to 10 analysis alternates for the nodes in a specified ContextNodeBaseCollection.

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

Syntax

'Declaration
Public Function GetAlternates ( _
    nodes As ContextNodeBaseCollection _
) As AnalysisAlternateBaseCollection
'Usage
Dim instance As InkAnalyzerBase 
Dim nodes As ContextNodeBaseCollection 
Dim returnValue As AnalysisAlternateBaseCollection 

returnValue = instance.GetAlternates(nodes)
public AnalysisAlternateBaseCollection GetAlternates(
    ContextNodeBaseCollection nodes
)
public:
AnalysisAlternateBaseCollection^ GetAlternates(
    ContextNodeBaseCollection^ nodes
)
public function GetAlternates(
    nodes : ContextNodeBaseCollection
) : AnalysisAlternateBaseCollection

Parameters

Return Value

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

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 context nodes in nodes do not have to represent adjacent areas of the document.

For each analysis hint in nodes, the InkAnalyzerBase returns only the top alternate.

Examples

The following example gets the default number of alternates for the ContextNodeBaseCollection, theContextNodes. In the example, theContextNodes are nodes contained by the InkAnalyzerBase, theInkAnalyzerBase.

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

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

System.Windows.Ink.AnalysisCore.ContextNodeBaseCollection