InkAnalyzerBase.RootNode 属性

获取墨迹分析器的上下文节点树的根 ContextNodeBase

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

语法

声明
Public ReadOnly Property RootNode As ContextNodeBase
用法
Dim instance As InkAnalyzerBase
Dim value As ContextNodeBase

value = instance.RootNode
public ContextNodeBase RootNode { get; }
public:
property ContextNodeBase^ RootNode {
    ContextNodeBase^ get ();
}
/** @property */
public ContextNodeBase get_RootNode()
public function get RootNode () : ContextNodeBase

属性值

类型:System.Windows.Ink.AnalysisCore.ContextNodeBase
墨迹分析器的上下文节点树的根 ContextNodeBase

备注

InkAnalyzerBase 维护 ContextNodeBase 对象树。这些对象既包含分析的输入也包含分析的结果。笔画最初添加到墨迹分析器时,分析器将这些笔画分配给 Type 属性值为 ContextNodeTypeBase.UnclassifiedInkContextNodeBase。笔画经过分析后由 InkAnalyzerBase 分配给树中相应的 ContextNodeBase 对象。

示例

此示例循环访问 InkAnalyzerBase (theInkAnalyzerBase) 的根节点的子节点。如果某个子节点是未分类墨迹节点,则将该节点添加到集合中。

' Iterate over the subnodes of the analyzer's root node and
' collect all unclassified ink nodes.
Dim theUnclassifiedInkNodes As New System.Collections.ArrayList()
Dim theNode As System.Windows.Ink.AnalysisCore.ContextNodeBase
For Each theNode In theInkAnalyzerBase.RootNode.SubNodes
    If System.Windows.Ink.AnalysisCore.ContextNodeTypeBase.UnclassifiedInk = theNode.Type Then
        theUnclassifiedInkNodes.Add(theNode)
    End If
Next theNode
// Iterate over the subnodes of the analyzer's root node and
// collect all unclassified ink nodes.
System.Collections.ArrayList theUnclassifiedInkNodes =
    new System.Collections.ArrayList();
foreach (System.Windows.Ink.AnalysisCore.ContextNodeBase theNode
    in theInkAnalyzerBase.RootNode.SubNodes)
{
    if (System.Windows.Ink.AnalysisCore.ContextNodeTypeBase.UnclassifiedInk == theNode.Type)
    {
        theUnclassifiedInkNodes.Add(theNode);
    }
}

平台

Windows Vista, Windows XP SP2, Windows Server 2003

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

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

InkAnalyzerBase 类

InkAnalyzerBase 成员

System.Windows.Ink.AnalysisCore 命名空间