次の方法で共有


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