This documentation is archived and is not being maintained.

InkAnalyzer.SetStrokeLanguageId Method

Changes the locale identifier for the specified Stroke.

Namespace: System.Windows.Ink
Assembly: IAWinFX (in iawinfx.dll)

public void SetStrokeLanguageId (
	Stroke stroke,
	int languageId
public void SetStrokeLanguageId (
	Stroke stroke, 
	int languageId
public function SetStrokeLanguageId (
	stroke : Stroke, 
	languageId : int
Not applicable.



The stroke to assign to the locale identifier.


The locale identifier to assign to 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, theContextNode, associated with the InkAnalyzer, theInkAnalyzer.

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

.NET Framework

Supported in: 3.0