Share via


InkAnalyzer.SetStrokeLanguageId Method

Changes the locale identifier for the specified Stroke.

Namespace:  System.Windows.Ink
Assembly:  IAWinFX (in IAWinFX.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 locale identifier to assign to the 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 (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);
}

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

System.Windows.Ink Namespace