HtmlAgilityPack.HtmlNodeNavigator.MoveToFirst C# (CSharp) Méthode

MoveToFirst() public méthode

Moves to the first sibling of the current node.
public MoveToFirst ( ) : bool
Résultat bool
        public override bool MoveToFirst()
        {
            if (_currentnode.ParentNode == null)
            {
                InternalTrace(">false");
                return false;
            }
            if (_currentnode.ParentNode.FirstChild == null)
            {
                InternalTrace(">false");
                return false;
            }
            _currentnode = _currentnode.ParentNode.FirstChild;
            InternalTrace(">true");
            return true;
        }