다음을 통해 공유


InkAnalyzer.GetAlternates 메서드 (ContextNodeCollection, Int32)

업데이트: 2007년 11월

ContextNodeCollection에 저장된 노드에 대한 지정된 수 이내의 분석 대체 항목이 들어 있는 AnalysisAlternateCollection을 반환합니다.

네임스페이스:  System.Windows.Ink
어셈블리:  IAWinFX(IAWinFX.dll)

구문

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

returnValue = instance.GetAlternates(nodes, _
    maximumAlternates)
public AnalysisAlternateCollection GetAlternates(
    ContextNodeCollection nodes,
    int maximumAlternates
)
public:
AnalysisAlternateCollection^ GetAlternates(
    ContextNodeCollection^ nodes, 
    int maximumAlternates
)
public AnalysisAlternateCollection GetAlternates(
    ContextNodeCollection nodes,
    int maximumAlternates
)
public function GetAlternates(
    nodes : ContextNodeCollection, 
    maximumAlternates : int
) : AnalysisAlternateCollection

매개 변수

  • maximumAlternates
    형식: System.Int32
    반환할 분석 대체 항목의 수입니다.

반환 값

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

설명

최상위 대체 항목이 컬렉션의 첫 번째 대체 항목으로 반환됩니다.

nodes의 ContextNode 개체가 문서의 인접 영역을 나타낼 필요는 없습니다.

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

예제

이 예제에서는 theInkAnalyzer라는 InkAnalyzer와 연결된 theContextNodes라는 ContextNodeCollection에 대한 상위 다섯 개의 대체 항목을 가져옵니다. 그런 다음 대체 항목에 대해 인식되는 문자열을 이름이 theAlternateStrings인 StringCollection에 추가합니다.

' Get 5 analysis alternates for the context node collection and add the
' recognized strings to a string collection.
theAlternateCollection = Me.theInkAnalyzer.GetAlternates(theContextNodes, 5)
theAlternateStrings.Clear()

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

플랫폼

Windows Vista

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

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

InkAnalyzer 클래스

InkAnalyzer 멤버

GetAlternates 오버로드

System.Windows.Ink 네임스페이스

System.Windows.Ink.AnalysisAlternate

System.Windows.Ink.AnalysisAlternateCollection

System.Windows.Ink.ContextNode

System.Windows.Ink.ContextNodeCollection