Share via


InkAnalyzerBase.GetStrokeLanguageId Method

Returns the locale identifier for the specified stroke.

Namespace:  System.Windows.Ink.AnalysisCore
Assembly:  IACore (in IACore.dll)

Syntax

'Declaration
Public Function GetStrokeLanguageId ( _
    strokeId As Integer _
) As Integer
'Usage
Dim instance As InkAnalyzerBase 
Dim strokeId As Integer 
Dim returnValue As Integer 

returnValue = instance.GetStrokeLanguageId(strokeId)
public int GetStrokeLanguageId(
    int strokeId
)
public:
int GetStrokeLanguageId(
    int strokeId
)
public function GetStrokeLanguageId(
    strokeId : int
) : int

Parameters

Return Value

Type: System.Int32
The locale identifier for the specified stroke.

Remarks

The stroke's locale is set when you add the stroke by calling AddStroke or AddStrokes. To change the stroke's locale, use SetStrokeLanguageId or SetStrokesLanguageId.

Examples

The following example checks the locale identifier of a specified stroke and sets it to Japanese if it is not already set to Japanese. The InkAnalyzerBase, theInkAnalyzerBase, contains stroke data for the stroke identifier, theStrokeId.

' If the specified stroke is not set to Japanese, 0x0011, 
' Set the stroke's locale to Japanese. 
Dim languageId As Integer = _
    theInkAnalyzerBase.GetStrokeLanguageId(theStrokeId)
If &H11 <> languageId Then
    theInkAnalyzerBase.SetStrokeLanguageId(theStrokeId, &H11)
End If
// If the specified stroke is not set to Japanese, 0x0011, 
// Set the stroke's locale to Japanese. 
int languageId = theInkAnalyzerBase.GetStrokeLanguageId(theStrokeId);
if (0x0011 != languageId)
{
    theInkAnalyzerBase.SetStrokeLanguageId(theStrokeId, 0x0011);
}

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

InkAnalyzerBase Class

InkAnalyzerBase Members

System.Windows.Ink.AnalysisCore Namespace

InkAnalyzerBase.SetStrokeLanguageId

InkAnalyzerBase.SetStrokesLanguageId