次の方法で共有


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 ContextNodeCollection FindInkLeafNodes (
    Strokes strokes
)
public function FindInkLeafNodes (
    strokes : Strokes
) : ContextNodeCollection
Not applicable.

Parameters

  • strokes
    The strokes that the ink leaf nodes contain.

Return Value

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.

Example

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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkAnalyzer Class
InkAnalyzer Members
Microsoft.Ink Namespace
InkAnalyzer.FindLeafNodes
InkAnalyzer.FindNode
Microsoft.Ink.InkAnalyzer.FindNodes
Microsoft.Ink.InkAnalyzer.FindNodesOfType