public AppendChild ( |
||
newChild | The node to add. May not be null. | |
return |
public HtmlNode AppendChild(HtmlNode newChild)
{
if (newChild == null)
{
throw new ArgumentNullException("newChild");
}
ChildNodes.Append(newChild);
_ownerdocument.SetIdForNode(newChild, newChild.GetId());
_outerchanged = true;
_innerchanged = true;
return newChild;
}
private static void AddContentRegions(Dictionary<string, HtmlNode> contentNodes, HtmlNode bodyNode) { foreach (var contentNode in contentNodes) { var titleNode = CreateContentTitleNode(contentNode); var linkNode = CreateContentLinkNode(titleNode); var headerNode = CreateContentHeaderNode(linkNode); bodyNode.AppendChild(headerNode); } }