Metodo InkAnalyzer.GetStrokeLanguageId
Aggiornamento: novembre 2007
Restituisce l'identificatore delle impostazioni locali dell'oggetto Stroke specificato.
Spazio dei nomi: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.dll)
Sintassi
'Dichiarazione
Public Function GetStrokeLanguageId ( _
stroke As Stroke _
) As Integer
'Utilizzo
Dim instance As InkAnalyzer
Dim stroke As Stroke
Dim returnValue As Integer
returnValue = instance.GetStrokeLanguageId(stroke)
public int GetStrokeLanguageId(
Stroke stroke
)
public:
int GetStrokeLanguageId(
Stroke^ stroke
)
public int GetStrokeLanguageId(
Stroke stroke
)
public function GetStrokeLanguageId(
stroke : Stroke
) : int
Parametri
- stroke
Tipo: System.Windows.Ink.Stroke
Tratto associato all'identificatore delle impostazioni locali.
Valore restituito
Tipo: System.Int32
Identificatore delle impostazioni locali di stroke.
Note
Le impostazioni locali del tratto vengono impostate quando si aggiunge un tratto, chiamando il metodo AddStroke o AddStrokes. Per modificare le impostazioni locali del tratto, chiamare il metodo SetStrokeLanguageId().
Esempi
In questo esempio viene definito un metodo, GetLanguagesInNode, utilizzato per restituire tutti gli identificatori delle impostazioni locali per i tratti di un oggetto ContextNode.
' Iterate through the strokes within the context node and add the locale
' identifiers to a collection.
Dim theLanguages As New System.Collections.ArrayList()
Dim theStroke As Stroke
For Each theStroke In theContextNode.Strokes
Dim theStrokeLanguage As Integer = theInkAnalyzer.GetStrokeLanguageId(theStroke)
If Not theLanguages.Contains(theStrokeLanguage) Then
theLanguages.Add(theStrokeLanguage)
End If
Next theStroke
// Iterate through the strokes within the context node and add the locale
// identifiers to a collection.
System.Collections.ArrayList theLanguages =
new System.Collections.ArrayList();
foreach (Stroke theStroke in theContextNode.Strokes)
{
int theStrokeLanguage =
theInkAnalyzer.GetStrokeLanguageId(theStroke);
if (!theLanguages.Contains(theStrokeLanguage))
{
theLanguages.Add(theStrokeLanguage);
}
}
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