InkAnalyzerBase.RootNode - свойство
Обновлен: Ноябрь 2007
Gets the root ContextNodeBase of the ink analyzer's context node tree.
Пространство имен: 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
The root ContextNodeBase of the ink analyzer's context node tree.
Заметки
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.
Примеры
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);
}
}
Платформы
Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0