Metodo InkAnalyzerBase.FindInkLeafNodes (array<Int32[])
Aggiornamento: novembre 2007
Restituisce i nodi foglia dell'input penna contenenti i dati dei tratti specificati.
Spazio dei nomi: System.Windows.Ink.AnalysisCore
Assembly: IACore (in IACore.dll)
Sintassi
'Dichiarazione
Public Function FindInkLeafNodes ( _
strokeIds As Integer() _
) As ContextNodeBaseCollection
'Utilizzo
Dim instance As InkAnalyzerBase
Dim strokeIds As Integer()
Dim returnValue As ContextNodeBaseCollection
returnValue = instance.FindInkLeafNodes(strokeIds)
public ContextNodeBaseCollection FindInkLeafNodes(
int[] strokeIds
)
public:
ContextNodeBaseCollection^ FindInkLeafNodes(
array<int>^ strokeIds
)
public ContextNodeBaseCollection FindInkLeafNodes(
int[] strokeIds
)
public function FindInkLeafNodes(
strokeIds : int[]
) : ContextNodeBaseCollection
Parametri
- strokeIds
Tipo: array<System.Int32[]
Identificatori dei tratti contenuti nei nodi foglia dell'input penna.
Valore restituito
Tipo: System.Windows.Ink.AnalysisCore.ContextNodeBaseCollection
Nodi foglia dell'input penna contenenti i dati dei tratti specificati.
Note
Esempi di nodi foglia dell'input penna sono nodi con un valore della proprietà Type di InkWord, InkDrawing e InkBullet.
I nodi foglia non contengono nodi figlio.
Se nessun nodo contiene i dati dei tratti, viene restituito un oggetto ContextNodeBaseCollection vuoto. Analogamente, se viene passata una matrice di identificatori di tratto vuota, viene restituito un oggetto ContextNodeBaseCollection vuoto.
Esempi
Nell'esempio seguente vengono riprodotti a ciclo continuo tutti i nodi foglia dell'input penna che contengono i tratti specificati dalla matrice di valori integer con segno a 32 bit, theStrokeIds, in InkAnalyzerBasetheInkAnalyzerBase. Successivamente vengono aggiunti gli identificatori per tutti i tratti di tali nodi foglia dell'input penna a un insieme espanso di identificatori di tratto, expandedStrokeIds.
' Find the ink leaf context nodes that contain the strokes, and
' add all of the stroke identifiers for strokes in those nodes to
' a collection of stroke identifiers.
Dim expandedStrokeIds As New System.Collections.ArrayList()
Dim leafNode As System.Windows.Ink.AnalysisCore.ContextNodeBase
For Each leafNode In theInkAnalyzerBase.FindInkLeafNodes(theStrokeIds)
expandedStrokeIds.AddRange(leafNode.GetStrokeIds())
Next leafNode
// Find the ink leaf context nodes that contain the strokes, and
// add all of the stroke identifiers for strokes in those nodes to
// a collection of stroke identifiers.
System.Collections.ArrayList expandedStrokeIds =
new System.Collections.ArrayList();
foreach (System.Windows.Ink.AnalysisCore.ContextNodeBase leafNode
in theInkAnalyzerBase.FindInkLeafNodes(theStrokeIds))
{
expandedStrokeIds.AddRange(leafNode.GetStrokeIds());
}
Piattaforme
Windows Vista, Windows XP SP2, Windows Server 2003
.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