Exemplo n.º 1
0
        public NodeIterator createNodeIterator(Node root, enumWhatToShow whatToShow, NodeFilter filter)
        {
            //The createNodeIterator(root, whatToShow, filter) method must run these steps:
            //Create a NodeIterator object.
            //Set root and initialize the referenceNode attribute to the root argument.
            //Initialize the pointerBeforeReferenceNode attribute to true.
            //Set whatToShow to the whatToShow argument.
            //Set filter to filter.
            //Return the newly created NodeIterator object.

            NodeIterator iterator = new NodeIterator();

            iterator.filter        = filter;
            iterator.root          = root;
            iterator.referenceNode = root;
            iterator.WhatToShow    = whatToShow;
            return(iterator);
        }
Exemplo n.º 2
0
 public TreeWalker createTreeWalker(Node root, enumWhatToShow whatToShow, NodeFilter filter)
 {
     throw new NotImplementedException();
 }