示例#1
0
 /// <summary>
 /// This will return true if the node passed is one of the children or grandchildren of this nodes.
 /// </summary>
 /// <param attributeName="nodes">The nodes that might be a child.</param>
 /// <returns>True if this nodes is an ancestor of the one specified.</returns>
 public bool IsAncestorOf(HtmlNode node)
 {
     if (null != node)
         return node.IsDescendantOf(this);
     else
         return false;
 }