Metodo InkAnalyzer.SetStrokesType
Aggiornamento: novembre 2007
Modifica il tipo di ogni tratto presente in un oggetto StrokeCollection.
Spazio dei nomi: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.dll)
Sintassi
'Dichiarazione
Public Sub SetStrokesType ( _
strokes As StrokeCollection, _
strokeType As StrokeType _
)
'Utilizzo
Dim instance As InkAnalyzer
Dim strokes As StrokeCollection
Dim strokeType As StrokeType
instance.SetStrokesType(strokes, strokeType)
public void SetStrokesType(
StrokeCollection strokes,
StrokeType strokeType
)
public:
void SetStrokesType(
StrokeCollection^ strokes,
StrokeType strokeType
)
public void SetStrokesType(
StrokeCollection strokes,
StrokeType strokeType
)
public function SetStrokesType(
strokes : StrokeCollection,
strokeType : StrokeType
)
Parametri
- strokes
Tipo: System.Windows.Ink.StrokeCollection
Insieme dei tratti assegnati a strokeType.
- strokeType
Tipo: System.Windows.Ink.StrokeType
Tipo di tratto assegnato ai tratti presenti in strokes.
Note
Se il tipo di un tratto è costituito dal valore Unspecified di System.Windows.Ink.StrokeType, l'oggetto InkAnalyzer classifica il tratto durante l'analisi dell'input penna. In caso contrario, InkAnalyzer utilizza il tipo impostato sul tratto.
Per ottenere il tipo assegnato attualmente a un tratto, chiamare GetStrokeType().
Esempi
In questo esempio viene assegnato il valore theStrokeType di StrokeType a tutti i tratti presenti nell'oggetto ContextNode, denominato theContextNode, associato all'oggetto InkAnalyzer, theInkAnalyzer.
theInkAnalyzer.SetStrokesType(theContextNode.Strokes, theStrokeType)
theInkAnalyzer.SetStrokesType(theContextNode.Strokes, theStrokeType);
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