다음을 통해 공유


InkAnalyzer.GetStrokeLanguageId 메서드

업데이트: 2007년 11월

지정된 Stroke의 로캘 식별자를 반환합니다.

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

구문

‘선언
Public Function GetStrokeLanguageId ( _
    stroke As Stroke _
) As Integer
‘사용 방법
Dim instance As InkAnalyzer
Dim stroke As Stroke
Dim returnValue As Integer

returnValue = instance.GetStrokeLanguageId(stroke)
public int GetStrokeLanguageId(
    Stroke stroke
)
public:
int GetStrokeLanguageId(
    Stroke^ stroke
)
public int GetStrokeLanguageId(
    Stroke stroke
)
public function GetStrokeLanguageId(
    stroke : Stroke
) : int

매개 변수

반환 값

형식: System.Int32
stroke의 로캘 식별자입니다.

설명

스트로크의 로캘은 스트로크를 추가할 때 AddStroke를 호출하거나 AddStrokes를 호출하여 설정합니다. 스트로크의 로캘을 변경하려면 SetStrokeLanguageId()를 호출합니다.

예제

이 예제에서는 ContextNode의 스트로크에 대한 모든 로캘 식별자를 반환하는 데 사용되는 GetLanguagesInNode 메서드를 정의합니다.

' Iterate through the strokes within the context node and add the locale
' identifiers to a collection.
Dim theLanguages As New System.Collections.ArrayList()
Dim theStroke As Stroke
For Each theStroke In theContextNode.Strokes
    Dim theStrokeLanguage As Integer = theInkAnalyzer.GetStrokeLanguageId(theStroke)
    If Not theLanguages.Contains(theStrokeLanguage) Then
        theLanguages.Add(theStrokeLanguage)
    End If
Next theStroke
// Iterate through the strokes within the context node and add the locale
// identifiers to a collection.
System.Collections.ArrayList theLanguages =
    new System.Collections.ArrayList();
foreach (Stroke theStroke in theContextNode.Strokes)
{
    int theStrokeLanguage =
        theInkAnalyzer.GetStrokeLanguageId(theStroke);
    if (!theLanguages.Contains(theStrokeLanguage))
    {
        theLanguages.Add(theStrokeLanguage);
    }
}

플랫폼

Windows Vista

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

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

InkAnalyzer 클래스

InkAnalyzer 멤버

System.Windows.Ink 네임스페이스