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


InkAnalyzer.SetStrokeLanguageId - метод

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

Changes the locale identifier for the specified Stroke.

Пространство имен:  System.Windows.Ink
Сборка:  IAWinFX (в IAWinFX.dll)

Синтаксис

'Декларация
Public Sub SetStrokeLanguageId ( _
    stroke As Stroke, _
    languageId As Integer _
)
'Применение
Dim instance As InkAnalyzer
Dim stroke As Stroke
Dim languageId As Integer

instance.SetStrokeLanguageId(stroke, _
    languageId)
public void SetStrokeLanguageId(
    Stroke stroke,
    int languageId
)
public:
void SetStrokeLanguageId(
    Stroke^ stroke, 
    int languageId
)
public void SetStrokeLanguageId(
    Stroke stroke,
    int languageId
)
public function SetStrokeLanguageId(
    stroke : Stroke, 
    languageId : int
)

Параметры

  • languageId
    Тип: System.Int32
    The locale identifier to assign to the stroke.

Заметки

A stroke's locale is set when you add the stroke by calling AddStroke or AddStrokes. To get the locale currently assigned to a stroke, call GetStrokeLanguageId().

Примеры

This example assigns the locale identifier, theLcid, to all of the strokes in the ContextNode (named theContextNode), associated with the InkAnalyzer (named theInkAnalyzer).

' Iterate through the strokes within the context node and update
' the locale of each stroke.
Dim theStroke As Stroke
For Each theStroke In theContextNode.Strokes
    theInkAnalyzer.SetStrokeLanguageId(theStroke, theLcid)
Next theStroke
// Iterate through the strokes within the context node and update
// the locale of each stroke.
foreach (Stroke theStroke in theContextNode.Strokes)
{
    theInkAnalyzer.SetStrokeLanguageId(theStroke, theLcid);
}

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

InkAnalyzer Класс

InkAnalyzer - члены

System.Windows.Ink - пространство имен