Condividi tramite


Metodo InkAnalyzer.SetStrokeLanguageId

Aggiornamento: novembre 2007

Modifica l'identificatore delle impostazioni locali dell'oggetto Stroke specificato.

Spazio dei nomi:  Microsoft.Ink
Assembly:  Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)

Sintassi

'Dichiarazione
Public Sub SetStrokeLanguageId ( _
    stroke As Stroke, _
    languageId As Integer _
)
'Utilizzo
Dim instance As InkAnalyzer
Dim stroke As Stroke
Dim languageId As Integer

instance.SetStrokeLanguageId(stroke, _
    languageId)
public void SetStrokeLanguageId(
    Stroke stroke,
    int languageId
)
public:
void SetStrokeLanguageId(
    Stroke^ stroke, 
    int languageId
)
public void SetStrokeLanguageId(
    Stroke stroke,
    int languageId
)
public function SetStrokeLanguageId(
    stroke : Stroke, 
    languageId : int
)

Parametri

  • stroke
    Tipo: Microsoft.Ink.Stroke
    Tratto al quale assegnare l'identificatore delle impostazioni locali.
  • languageId
    Tipo: System.Int32
    Identificatore di lingua da assegnare all'oggetto stroke.

Note

Le impostazioni locali del tratto vengono impostate quando si aggiunge il tratto tramite la chiamata del metodo AddStroke o AddStrokes. Per ottenere le impostazioni locali assegnate attualmente a un tratto, chiamare GetStrokeLanguageId.

Esempi

In questo esempio viene assegnato l'identificatore delle impostazioni locali, theLcid, a tutti i tratti nell'oggetto ContextNode, theContextNode associato all'oggetto InkAnalyzer, theInkAnalyzer.

' Iterate through the strokes within the context node and update
' the locale of each stroke.
Dim theStroke As Microsoft.Ink.Stroke
For Each theStroke In theContextNode.Strokes
    theInkAnalyzer.SetStrokeLanguageId(theStroke, theLcid)
Next theStroke
// Iterate through the strokes within the context node and update
// the locale of each stroke.
foreach (Microsoft.Ink.Stroke theStroke in theContextNode.Strokes)
{
    theInkAnalyzer.SetStrokeLanguageId(theStroke, theLcid);
}

Piattaforme

Windows Vista

.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.

Informazioni sulla versione

.NET Framework

Supportato in: 3.0

Vedere anche

Riferimenti

InkAnalyzer Classe

Membri InkAnalyzer

Spazio dei nomi Microsoft.Ink