HtmlAgilityPack.HtmlNodeNavigator.MoveToId C# (CSharp) Method

MoveToId() public method

Moves to the node that has an attribute of type ID whose value matches the specified string.
public MoveToId ( string id ) : bool
id string A string representing the ID value of the node to which you want to move. This argument does not need to be atomized.
return bool
        public override bool MoveToId(string id)
        {
            InternalTrace("id=" + id);
            HtmlNode node = _doc.GetElementbyId(id);
            if (node == null)
            {
                InternalTrace(">false");
                return false;
            }
            _currentnode = node;
            InternalTrace(">true");
            return true;
        }