Compartir a través de


InkAnalyzerBase.GetStrokeLanguageId (Método)

Actualización: noviembre 2007

Devuelve el identificador de configuración regional del trazo especificado.

Espacio de nombres:  System.Windows.Ink.AnalysisCore
Ensamblado:  IACore (en IACore.dll)

Sintaxis

'Declaración
Public Function GetStrokeLanguageId ( _
    strokeId As Integer _
) As Integer
'Uso
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

Parámetros

Valor devuelto

Tipo: System.Int32
Identificador de configuración regional del trazo especificado.

Comentarios

La configuración regional del trazo se establece al agregar el trazo llamando a AddStroke o AddStrokes. Para cambiar la configuración regional del trazo, utilice SetStrokeLanguageId o SetStrokesLanguageId.

Ejemplos

En el ejemplo siguiente, se comprueba el identificador de configuración regional de un trazo especificado y se establece en japonés si aún no está establecido en japonés. El objeto InkAnalyzerBase, theInkAnalyzerBase, contiene datos para el identificador del trazo, 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);
}

Plataformas

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework y .NET Compact Framework no admiten todas las versiones de cada plataforma. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.

Información de versión

.NET Framework

Compatible con: 3.0

Vea también

Referencia

InkAnalyzerBase (Clase)

InkAnalyzerBase (Miembros)

System.Windows.Ink.AnalysisCore (Espacio de nombres)

InkAnalyzerBase.SetStrokeLanguageId

InkAnalyzerBase.SetStrokesLanguageId