Freigeben über


InkAnalyzer.FindLeafNodes-Methode

Gibt alle Freihandendknoten zurück, bei denen es sich um ContextNode-Objekte handelt, die keine untergeordneten Knoten besitzen.

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

Syntax

'Declaration
Public Function FindLeafNodes As ContextNodeCollection
'Usage
Dim instance As InkAnalyzer
Dim returnValue As ContextNodeCollection

returnValue = instance.FindLeafNodes()
public ContextNodeCollection FindLeafNodes()
public:
ContextNodeCollection^ FindLeafNodes()
public ContextNodeCollection FindLeafNodes()
public function FindLeafNodes() : ContextNodeCollection

Rückgabewert

Typ: Microsoft.Ink.ContextNodeCollection
Eine ContextNodeCollection, die alle Endknoten enthält.

Beispiele

Im folgenden Beispiel werden alle Freihandendknoten von InkAnalyzer, theInkAnalyzer, durchlaufen und diejenigen, die sich auf einen Wert unter einer Ganzzahl erstrecken (yValue), einer ArrayList, nodesBelowYValue, hinzugefügt.

Dim nodesBelowYValue As New ArrayList()
Dim leafNode As ContextNode
For Each leafNode In theInkAnalyzer.FindLeafNodes()
    ' Add to collection if bottom is lower than yValue
    If leafNode.Location.GetBounds().Bottom > yValue Then
        nodesBelowYValue.Add(leafNode)
    End If
Next leafNode
            ArrayList nodesBelowYValue = new ArrayList();
            foreach (ContextNode leafNode in theInkAnalyzer.FindLeafNodes())
            {
                // Add to collection if bottom is lower than yValue
                if (leafNode.Location.GetBounds().Bottom > yValue)
                {
                    nodesBelowYValue.Add(leafNode);
                }
            }

Plattformen

Windows Vista

.NET Framework und .NET Compact Framework unterstützen nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.

Versionsinformationen

.NET Framework

Unterstützt in: 3.0

Siehe auch

Referenz

InkAnalyzer-Klasse

InkAnalyzer-Member

Microsoft.Ink-Namespace

InkAnalyzer.FindInkLeafNodes

InkAnalyzer.FindNode

InkAnalyzer.FindNodes

InkAnalyzer.FindNodesOfType