Condividi tramite


Metodo InkAnalyzer.SetStrokeLanguageId

Aggiornamento: novembre 2007

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

Spazio dei nomi:  System.Windows.Ink
Assembly:  IAWinFX (in IAWinFX.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

  • languageId
    Tipo: System.Int32
    Identificatore delle impostazioni locali 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 dell'oggetto ContextNode (denominato theContextNode), associato all'oggetto InkAnalyzer (denominato theInkAnalyzer).

' Iterate through the strokes within the context node and update
' the locale of each stroke.
Dim theStroke As 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 (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 System.Windows.Ink