InkAnalyzer.FindLeafNodes Method
Returns a ContextNodeCollection that contains all of the leaf nodes that are ContextNode objects without child nodes.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.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 function FindLeafNodes() : ContextNodeCollection
Return Value
Type: System.Windows.Ink.ContextNodeCollection
A ContextNodeCollection that contains all the leaf nodes.
Examples
The following example loops through all the leaf nodes of an InkAnalyzer, named theInkAnalyzer, and adds those that extend below an integer value, yValue, to an ArrayList named nodesBelowYValue.
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);
}
}
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