Sdílet prostřednictvím


InkAnalyzer.SetStrokesLanguageId Method

Changes the locale identifier for the specified StrokeCollection.

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

Syntax

'Declaration
Public Sub SetStrokesLanguageId ( _
    strokes As StrokeCollection, _
    languageId As Integer _
)
'Usage
Dim instance As InkAnalyzer 
Dim strokes As StrokeCollection 
Dim languageId As Integer

instance.SetStrokesLanguageId(strokes, _
    languageId)
public void SetStrokesLanguageId(
    StrokeCollection strokes,
    int languageId
)
public:
void SetStrokesLanguageId(
    StrokeCollection^ strokes, 
    int languageId
)
public function SetStrokesLanguageId(
    strokes : StrokeCollection, 
    languageId : int
)

Parameters

  • languageId
    Type: System.Int32

    The locale identifier assigned 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 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