업데이트: 2007년 11월
지정된 스트로크에 대한 최대 10개의 분석 대체 항목이 들어 있는 AnalysisAlternateCollection을 반환합니다.
네임스페이스: System.Windows.Ink
어셈블리: IAWinFX(IAWinFX.dll)
구문
‘선언
Public Function GetAlternates ( _
strokes As StrokeCollection _
) As AnalysisAlternateCollection
‘사용 방법
Dim instance As InkAnalyzer
Dim strokes As StrokeCollection
Dim returnValue As AnalysisAlternateCollection
returnValue = instance.GetAlternates(strokes)
public AnalysisAlternateCollection GetAlternates(
StrokeCollection strokes
)
public:
AnalysisAlternateCollection^ GetAlternates(
StrokeCollection^ strokes
)
public AnalysisAlternateCollection GetAlternates(
StrokeCollection strokes
)
public function GetAlternates(
strokes : StrokeCollection
) : AnalysisAlternateCollection
매개 변수
- strokes
형식: System.Windows.Ink.StrokeCollection
분석 대체 항목을 가져올 스트로크입니다.
반환 값
형식: System.Windows.Ink.AnalysisAlternateCollection
strokes에 대한 최대 10개의 최상위 분석 대체 항목입니다.
설명
최상위 대체 항목이 컬렉션의 첫 번째 대체 항목으로 반환됩니다. 대체 항목이 11개 이상이면 처음 10개만 반환됩니다.
strokes의 Stroke 개체가 문서의 인접 영역을 나타낼 필요는 없습니다.
예제
이 예제에서는 theInkAnalyzer라는 InkAnalyzer와 연결된 theStrokes라는 StrokeCollection에 대해 상위 10개의 대체 항목을 가져옵니다. 그런 다음 대체 항목에 대해 인식되는 문자열을 StringCollection(theAlternateStrings)에 추가합니다.
' Get analysis alternates for the strokes collection and add the
' recognized strings to a string collection.
theAlternateCollection = Me.theInkAnalyzer.GetAlternates(theStrokes)
theAlternateStrings.Clear()
For Each theAlternate As AnalysisAlternate In theAlternateCollection
theAlternateStrings.Add(theAlternate.RecognizedString)
Next theAlternate
// Get analysis alternates for the strokes collection and add the
// recognized strings to a string collection.
theAlternateCollection = this.theInkAnalyzer.GetAlternates(theStrokes);
theAlternateStrings.Clear();
foreach (AnalysisAlternate theAlternate
in theAlternateCollection)
{
theAlternateStrings.Add(theAlternate.RecognizedString);
}
플랫폼
Windows Vista
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
3.0에서 지원
참고 항목
참조
System.Windows.Ink.AnalysisAlternate