Compartir a través de


InkAnalyzer.SetStrokeLanguageId Method

Changes the locale identifier for the specified Stroke.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in microsoft.ink.analysis.dll)

Syntax

'Declaration
Public Sub SetStrokeLanguageId ( _
    stroke As Stroke, _
    languageId As Integer _
)
'Usage
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
)
Not applicable.

Parameters

  • stroke
    The stroke to which to assign the locale identifier.
  • languageId
    The language identifier to assign to stroke.

Remarks

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 Microsoft.Ink.InkAnalyzer.GetStrokeLanguageId(System.Int32).

Example

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

' Iterate through the strokes within the context node and update
' the locale of each stroke.
Dim theStroke As Microsoft.Ink.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 (Microsoft.Ink.Stroke theStroke in theContextNode.Strokes)
{
    theInkAnalyzer.SetStrokeLanguageId(theStroke, theLcid);
}

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkAnalyzer Class
InkAnalyzer Members
Microsoft.Ink Namespace