public HtmlNodeNavigator(HtmlDocument document, HtmlNode currentNode, HtmlNodeNavigatorOptions options)
        {
            if (currentNode == null)
            {
                throw new ArgumentNullException(nameof(currentNode));
            }

            Document    = document;
            CurrentNode = currentNode;
            BaseNode    = currentNode;
            Options     = options;
            if ((options & HtmlNodeNavigatorOptions.RootNode) == HtmlNodeNavigatorOptions.RootNode)
            {
                _rootNode = CurrentNode;
            }
        }
Ejemplo n.º 2
0
 public Navigable(HtmlDocument ownerDocument, HtmlNode node, HtmlNodeNavigatorOptions options)
 {
     _ownerDocument = ownerDocument;
     _node          = node;
     _options       = options;
 }