Share via


InkAnalyzerBase.FindInkLeafNodes Method (array<Int32[])

Returns the ink leaf nodes that contain the specified stroke data.

Namespace:  System.Windows.Ink.AnalysisCore
Assembly:  IACore (in IACore.dll)

Syntax

'Declaration
Public Function FindInkLeafNodes ( _
    strokeIds As Integer() _
) As ContextNodeBaseCollection
'Usage
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 function FindInkLeafNodes(
    strokeIds : int[]
) : ContextNodeBaseCollection

Parameters

  • strokeIds
    Type: array<System.Int32[]

    The identifiers for the strokes that the ink leaf nodes contain.

Return Value

Type: System.Windows.Ink.AnalysisCore.ContextNodeBaseCollection
The ink leaf nodes that contain the specified stroke data.

Remarks

Examples of ink leaf nodes are nodes with a Type property value of InkWord, InkDrawing, and InkBullet.

Leaf nodes do not contain child nodes.

If no nodes contain the stroke data, an empty ContextNodeBaseCollection is returned. Similarly, if an empty stroke identifier array is passed in, an empty ContextNodeBaseCollection is returned.

Examples

The following example loops through all the ink leaf nodes containing the strokes specified by the 32-bit signed integer array, theStrokeIds, in the InkAnalyzerBase, theInkAnalyzerBase. It then adds the identifiers for all of the strokes in those ink leaf nodes to an expanded collection of stroke identifiers, 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());
}

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkAnalyzerBase Class

InkAnalyzerBase Members

FindInkLeafNodes Overload

System.Windows.Ink.AnalysisCore Namespace

InkAnalyzerBase.FindLeafNodes

InkAnalyzerBase.FindNode

InkAnalyzerBase.FindNodes

InkAnalyzerBase.FindNodesOfType