Share via


InkAnalyzer.FindInkLeafNodes Method (Strokes)

Returns the ink leaf nodes that contain the specified strokes.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)

Syntax

'Declaration
Public Function FindInkLeafNodes ( _
    strokes As Strokes _
) As ContextNodeCollection
'Usage
Dim instance As InkAnalyzer 
Dim strokes As Strokes 
Dim returnValue As ContextNodeCollection 

returnValue = instance.FindInkLeafNodes(strokes)
public ContextNodeCollection FindInkLeafNodes(
    Strokes strokes
)
public:
ContextNodeCollection^ FindInkLeafNodes(
    Strokes^ strokes
)
public function FindInkLeafNodes(
    strokes : Strokes
) : ContextNodeCollection

Parameters

Return Value

Type: Microsoft.Ink.ContextNodeCollection
The ink leaf nodes that contain the specified strokes.

Remarks

Examples of ink leaf nodes are InkWordNode, InkDrawingNode, and InkBulletNode.

Leaf nodes do not contain child nodes.

If no nodes contain the strokes, an empty ContextNodeCollection is returned. Similarly, if an empty Strokes collection is passed in, an empty ContextNodeCollection is returned.

Examples

The following example loops through the ink leaf nodes of an InkAnalyzer, theInkAnalyzer, that contain the Strokes collection, selectedStrokes. It colors those nodes red.

Dim node As ContextNode
For Each node In theInkAnalyzer.FindInkLeafNodes(selectedStrokes)
    Dim inkStroke As Stroke
    For Each inkStroke In node.Strokes
        inkStroke.DrawingAttributes = New DrawingAttributes(Color.Red)
    Next inkStroke
Next node
           foreach (ContextNode node in theInkAnalyzer.FindInkLeafNodes(selectedStrokes))
            {
                foreach (Stroke stroke in node.Strokes)
                {
                    stroke.DrawingAttributes = new DrawingAttributes(Color.Red);
                }
            }

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

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

InkAnalyzer Class

InkAnalyzer Members

FindInkLeafNodes Overload

Microsoft.Ink Namespace

InkAnalyzer.FindLeafNodes

InkAnalyzer.FindNode

InkAnalyzer.FindNodes

InkAnalyzer.FindNodesOfType