InkAnalyzerBase.RootNode Property
Gets the root ContextNodeBase of the ink analyzer's context node tree.
Namespace: System.Windows.Ink.AnalysisCore
Assembly: IACore (in IACore.dll)
Syntax
'Declaration
Public ReadOnly Property RootNode As ContextNodeBase
'Usage
Dim instance As InkAnalyzerBase
Dim value As ContextNodeBase
value = instance.RootNode
public ContextNodeBase RootNode { get; }
public:
property ContextNodeBase^ RootNode {
ContextNodeBase^ get ();
}
public function get RootNode () : ContextNodeBase
Property Value
Type: System.Windows.Ink.AnalysisCore.ContextNodeBase
The root ContextNodeBase of the ink analyzer's context node tree.
Remarks
The InkAnalyzerBase maintains a tree of ContextNodeBase objects. These objects contain both input for analysis and the results of analysis. When strokes are initially added to the ink analyzer, the analyzer assigns them to a ContextNodeBase that has a Type property value of ContextNodeTypeBase.UnclassifiedInk. After the strokes are analyzed, the InkAnalyzerBase assigns them to appropriate ContextNodeBase objects in the tree.
Examples
This example iterates over the child nodes of the root node for an InkAnalyzerBase, theInkAnalyzerBase. If a child node is an unclassified ink node, the node is added to a collection.
' 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);
}
}
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0