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 int GetStrokeLanguageId (
    int strokeId
)
public function GetStrokeLanguageId (
    strokeId : int
) : int
Not applicable.

Parameters

  • strokeId
    The stroke identifier.

Return Value

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.

Example

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

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkAnalyzerBase Class
InkAnalyzerBase Members
System.Windows.Ink.AnalysisCore Namespace
InkAnalyzerBase.SetStrokeLanguageId
InkAnalyzerBase.SetStrokesLanguageId