InkAnalyzerBase.FindInkLeafNodes 方法

返回作为包含笔画数据的 ContextNodeBase 对象的所有墨迹叶节点。

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

语法

声明
Public Function FindInkLeafNodes As ContextNodeBaseCollection
用法
Dim instance As InkAnalyzerBase
Dim returnValue As ContextNodeBaseCollection

returnValue = instance.FindInkLeafNodes()
public ContextNodeBaseCollection FindInkLeafNodes()
public:
ContextNodeBaseCollection^ FindInkLeafNodes()
public ContextNodeBaseCollection FindInkLeafNodes()
public function FindInkLeafNodes() : ContextNodeBaseCollection

返回值

类型:System.Windows.Ink.AnalysisCore.ContextNodeBaseCollection
作为包含笔画数据的 ContextNodeBase 对象的所有墨迹叶节点。

备注

墨迹叶节点的示例包括 Type 属性值为 InkWordInkDrawingInkBullet 的节点。

叶节点不包含子节点。

示例

下面的示例遍历 InkAnalyzerBase (theInkAnalyzerBase) 的所有墨迹叶节点,查找具有最低下限的叶节点。

' 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];
    }
}

平台

Windows Vista, Windows XP SP2, Windows Server 2003

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

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

InkAnalyzerBase 类

InkAnalyzerBase 成员

FindInkLeafNodes 重载

System.Windows.Ink.AnalysisCore 命名空间

InkAnalyzerBase.FindLeafNodes

InkAnalyzerBase.FindNode

InkAnalyzerBase.FindNodes

InkAnalyzerBase.FindNodesOfType