共用方式為


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 命名空間