Compartir a través de


InkAnalyzer.RootNode (Propiedad)

Actualización: noviembre 2007

Obtiene el objeto ContextNode raíz del objeto InkAnalyzer.

Espacio de nombres:  System.Windows.Ink
Ensamblado:  IAWinFX (en IAWinFX.dll)

Sintaxis

'Declaración
Public ReadOnly Property RootNode As ContextNode
'Uso
Dim instance As InkAnalyzer
Dim value As ContextNode

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

Valor de propiedad

Tipo: System.Windows.Ink.ContextNode
Objeto raíz ContextNode del objeto InkAnalyzer.

Comentarios

El objeto InkAnalyzer mantiene un árbol de objetos ContextNode. Estos objetos contienen la entrada para el análisis y los resultados del análisis. Cuando se agregan inicialmente trazos al objeto InkAnalyzer, el objeto InkAnalyzer los asigna a un objeto UnclassifiedInkNode. Una vez analizados los trazos, el objeto InkAnalyzer los asigna a los objetos ContextNode adecuados del árbol.

Ejemplos

En este ejemplo, se llama a un método auxiliar, CheckTreeNodes, para comprobar todos los objetos ContextNode mantenidos actualmente por el objeto InkAnalyzer, denominado theInkAnalyzer.

' Use a helper function to check all the ContextNode objects in
' the analyzer's tree.
CheckTreeNodes(Me.theInkAnalyzer.RootNode)
// Use a helper function to check all the ContextNode objects in
// the analyzer's tree.
CheckTreeNodes(this.theInkAnalyzer.RootNode);

En este ejemplo, CheckTreeNodes envía información sobre cada nodo encontrado al resultado de la depuración.

Private Shared Sub CheckTreeNodes(ByVal theContextNode As ContextNode) 
    ' Check the node...
    System.Diagnostics.Debug.WriteLine(theContextNode.ToString())
    System.Diagnostics.Debug.Indent()

    ' Check the child nodes.
    Dim theContextSubnode As ContextNode
    For Each theContextSubnode In  theContextNode.SubNodes
        CheckTreeNodes(theContextSubnode)
    Next theContextSubnode

    System.Diagnostics.Debug.Unindent()

End Sub 'CheckTreeNodes
private static void CheckTreeNodes(ContextNode theContextNode)
{
    // Check the node...
    System.Diagnostics.Debug.WriteLine(theContextNode.ToString());
    System.Diagnostics.Debug.Indent();

    // Check the child nodes.
    foreach (ContextNode theContextSubnode
        in theContextNode.SubNodes)
    {
        CheckTreeNodes(theContextSubnode);
    }

    System.Diagnostics.Debug.Unindent();
}

Plataformas

Windows Vista

.NET Framework y .NET Compact Framework no admiten todas las versiones de cada plataforma. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.

Información de versión

.NET Framework

Compatible con: 3.0

Vea también

Referencia

InkAnalyzer (Clase)

InkAnalyzer (Miembros)

System.Windows.Ink (Espacio de nombres)