InkAnalyzerBase.FindInkLeafNodes Method ()
Returns all of the ink leaf nodes, which are the ContextNodeBase objects that contain stroke data.
Namespace: System.Windows.Ink.AnalysisCore
Assembly: IACore (in iacore.dll)
Syntax
'Declaration
Public Function FindInkLeafNodes As ContextNodeBaseCollection
'Usage
Dim instance As InkAnalyzerBase
Dim returnValue As ContextNodeBaseCollection
returnValue = instance.FindInkLeafNodes
public ContextNodeBaseCollection FindInkLeafNodes ()
public:
ContextNodeBaseCollection^ FindInkLeafNodes ()
public ContextNodeBaseCollection FindInkLeafNodes ()
public function FindInkLeafNodes () : ContextNodeBaseCollection
Not applicable.
Return Value
All of the ink leaf nodes, which are the ContextNodeBase objects that contain stroke data.
Remarks
Examples of ink leaf nodes are nodes with a Type property value of InkWord, InkDrawing, and InkBullet.
Leaf nodes do not contain child nodes.
Example
The following example loops through all the ink leaf nodes of an InkAnalyzerBase, theInkAnalyzerBase
, and finds the one with the lowest lower bound.
' Find the ink leaf context node that has the lowest bottom bound.
Dim lowest As Integer = Integer.MaxValue
Dim lowestNode As System.Windows.Ink.AnalysisCore.ContextNodeBase = Nothing
Dim leafNode As System.Windows.Ink.AnalysisCore.ContextNodeBase
For Each leafNode In theInkAnalyzerBase.FindInkLeafNodes()
' Find lowest node. Note, AnalysisRegionBase.GetBounds() returns an
' array containing the left, top, right, and bottom bounds in order.
If leafNode.Location.GetBounds()(3) > lowest Then
lowestNode = leafNode
lowest = leafNode.Location.GetBounds()(3)
End If
Next leafNode
// Find the ink leaf context node that has the lowest bottom bound.
int lowest = int.MaxValue;
System.Windows.Ink.AnalysisCore.ContextNodeBase lowestNode = null;
foreach (System.Windows.Ink.AnalysisCore.ContextNodeBase leafNode
in theInkAnalyzerBase.FindInkLeafNodes())
{
// Find lowest node. Note, AnalysisRegionBase.GetBounds() returns an
// array containing the left, top, right, and bottom bounds in order.
if (leafNode.Location.GetBounds()[3] > lowest)
{
lowestNode = leafNode;
lowest = leafNode.Location.GetBounds()[3];
}
}
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
InkAnalyzerBase Class
InkAnalyzerBase Members
System.Windows.Ink.AnalysisCore Namespace
InkAnalyzerBase.FindLeafNodes
InkAnalyzerBase.FindNode
System.Windows.Ink.AnalysisCore.InkAnalyzerBase.FindNodes
System.Windows.Ink.AnalysisCore.InkAnalyzerBase.FindNodesOfType