다음을 통해 공유


InkAnalyzer.GetAlternates 메서드 (StrokeCollection, Int32)

업데이트: 2007년 11월

지정된 스트로크에 대한 지정된 수 이내의 분석 대체 항목이 들어 있는 AnalysisAlternateCollection을 반환합니다.

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

구문

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

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

매개 변수

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

반환 값

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

설명

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

strokes에 저장된 Stroke 개체가 문서의 인접 영역을 나타낼 필요는 없습니다.

예제

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

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

For Each theAlternate As AnalysisAlternate In theAlternateCollection
    theAlternateStrings.Add(theAlternate.RecognizedString)
Next theAlternate
// Get 5 analysis alternates for the strokes collection and add the
// recognized string to a collection.
theAlternateCollection = this.theInkAnalyzer.GetAlternates(theStrokes, 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.Stroke

System.Windows.Ink.StrokeCollection