Share via


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 function SetStrokeLanguageId(
    stroke : Stroke, 
    languageId : int
)

Parameters

  • languageId
    Type: System.Int32

    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 GetStrokeLanguageId.

Examples

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 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkAnalyzer Class

InkAnalyzer Members

Microsoft.Ink Namespace