This documentation is archived and is not being maintained.

InkAnalyzerBase.FindInkLeafNodes Method (Int32[])

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

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

public ContextNodeBaseCollection FindInkLeafNodes(
	int[] strokeIds


Type: 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.

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.

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.
System.Collections.ArrayList expandedStrokeIds =
    new System.Collections.ArrayList();
foreach (System.Windows.Ink.AnalysisCore.ContextNodeBase leafNode
    in theInkAnalyzerBase.FindInkLeafNodes(theStrokeIds))

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.

.NET Framework

Supported in: 3.0