다음을 통해 공유


InkAnalyzer.GetAlternates 메서드 (ContextNodeCollection)

업데이트: 2007년 11월

지정된 ContextNodeCollection의 노드에 대한 최대 10개의 분석 대체 항목을 반환합니다.

네임스페이스:  Microsoft.Ink
어셈블리:  Microsoft.Ink.Analysis(Microsoft.Ink.Analysis.dll)

구문

‘선언
Public Function GetAlternates ( _
    nodes As ContextNodeCollection _
) As AnalysisAlternateCollection
‘사용 방법
Dim instance As InkAnalyzer
Dim nodes As ContextNodeCollection
Dim returnValue As AnalysisAlternateCollection

returnValue = instance.GetAlternates(nodes)
public AnalysisAlternateCollection GetAlternates(
    ContextNodeCollection nodes
)
public:
AnalysisAlternateCollection^ GetAlternates(
    ContextNodeCollection^ nodes
)
public AnalysisAlternateCollection GetAlternates(
    ContextNodeCollection nodes
)
public function GetAlternates(
    nodes : ContextNodeCollection
) : AnalysisAlternateCollection

매개 변수

반환 값

형식: Microsoft.Ink.AnalysisAlternateCollection
nodes에 대한 최대 10개의 최상위 분석 대체 항목입니다.

설명

최상위 대체 항목이 컬렉션의 첫 번째 대체 항목으로 반환됩니다. 대체 항목이 11개 이상이면 처음 10개만 반환됩니다.

nodes의 ContextNode 개체는 문서에서 서로 인접한 영역을 나타내지 않을 수도 있습니다.

nodes의 각 분석 힌트에 대해 InkAnalyzer는 최상위 대체 항목만 반환합니다.

예제

이 예제에서는 InkAnalyzer인 theInkAnalyzer에 연결된 ContextNodeCollection인 theContextNodes에 대한 최상위 대체 항목 10개를 가져옵니다. 그런 다음 대체 항목으로 인식되는 문자열을 System.Collections.Specialized.StringCollection인 theAlternateStrings에 추가합니다.

' Get analysis alternates for the context node collection and add the
' recognized strings to a string collection.
theAlternateCollection = Me.theInkAnalyzer.GetAlternates(theContextNodes)
theAlternateStrings.Clear()
Dim theAlternate As Microsoft.Ink.AnalysisAlternate
For Each theAlternate In theAlternateCollection
    theAlternateStrings.Add(theAlternate.RecognizedString)
Next theAlternate
// Get analysis alternates for the context node collection and add the
// recognized strings to a string collection.
theAlternateCollection = this.theInkAnalyzer.GetAlternates(theContextNodes);
theAlternateStrings.Clear();
foreach (Microsoft.Ink.AnalysisAlternate theAlternate
    in theAlternateCollection)
{
    theAlternateStrings.Add(theAlternate.RecognizedString);
}

플랫폼

Windows Vista

.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

InkAnalyzer 클래스

InkAnalyzer 멤버

GetAlternates 오버로드

Microsoft.Ink 네임스페이스

Microsoft.Ink.AnalysisAlternate

Microsoft.Ink.AnalysisAlternateCollection

Microsoft.Ink.ContextNode

Microsoft.Ink.ContextNodeCollection