Поделиться через


InkAnalyzer.GetStrokeLanguageId - метод

Обновлен: Ноябрь 2007

Returns the locale identifier of the specified 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
The locale identifier of stroke.

Заметки

The stroke's locale is set when you add a stroke, either by calling AddStroke or by calling AddStrokes. To change the stroke's locale, call SetStrokeLanguageId().

Примеры

This example defines a method, GetLanguagesInNode, used to return all locale identifiers for the strokes in a ContextNode.

' 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 - пространство имен