InkAnalyzer.FindLeafNodes 方法

返回一个 ContextNodeCollection,其中包含作为无子节点的 ContextNode 对象的所有叶节点。

命名空间:  System.Windows.Ink
程序集:  IAWinFX(在 IAWinFX.dll 中)

语法

声明
Public Function FindLeafNodes As ContextNodeCollection
用法
Dim instance As InkAnalyzer
Dim returnValue As ContextNodeCollection

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

返回值

类型:System.Windows.Ink.ContextNodeCollection
一个包含所有叶节点的 ContextNodeCollection

示例

下面的示例遍历名为 theInkAnalyzer 的 InkAnalyzer 的所有叶节点,并将低于整数值 yValue 的节点添加到名为 nodesBelowYValue 的 ArrayList

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);
    }
}

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

InkAnalyzer 类

InkAnalyzer 成员

System.Windows.Ink 命名空间

InkAnalyzer.FindInkLeafNodes

InkAnalyzer.FindNode

InkAnalyzer.FindNodes

InkAnalyzer.FindNodesOfType