InkAnalyzer.SetStrokesLanguageId Method
Changes the locale identifier for the specified Strokes.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)
Syntax
'Declaration
Public Sub SetStrokesLanguageId ( _
strokes As Strokes, _
languageId As Integer _
)
'Usage
Dim instance As InkAnalyzer
Dim strokes As Strokes
Dim languageId As Integer
instance.SetStrokesLanguageId(strokes, _
languageId)
public void SetStrokesLanguageId(
Strokes strokes,
int languageId
)
public:
void SetStrokesLanguageId(
Strokes^ strokes,
int languageId
)
public function SetStrokesLanguageId(
strokes : Strokes,
languageId : int
)
Parameters
strokes
Type: Microsoft.Ink.StrokesThe strokes to which to assign the locale identifier.
languageId
Type: System.Int32The language identifier to assign to the strokes in strokes.
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.
' Update the locale of all strokes associated with the context node.
theInkAnalyzer.SetStrokesLanguageId(theContextNode.Strokes, theLcid)
// Update the locale of all strokes associated with the context node.
theInkAnalyzer.SetStrokesLanguageId(theContextNode.Strokes, 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