Aspose.Words.Examples.CSharp.Programming_Documents.Working_with_Node.ExNode.RecurseAllNodes C# (CSharp) Method

RecurseAllNodes() public static method

public static RecurseAllNodes ( ) : void
return void
        public static void RecurseAllNodes()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_WorkingWithNode();
            // Open a document.
            Document doc = new Document(dataDir + "Node.RecurseAllNodes.doc");

            // Invoke the recursive function that will walk the tree.
            TraverseAllNodes(doc);
        }