HtmlAgilityPack.HtmlNode.PrependChildren C# (CSharp) Method

PrependChildren() public method

Adds the specified node list to the beginning of the list of children of this node.
public PrependChildren ( HtmlAgilityPack.HtmlNodeCollection newChildren ) : void
newChildren HtmlAgilityPack.HtmlNodeCollection The node list to add. May not be null.
return void
		public void PrependChildren(HtmlNodeCollection newChildren)
		{
			if (newChildren == null)
			{
				throw new ArgumentNullException("newChildren");
			}

			foreach(HtmlNode newChild in newChildren)
			{
				PrependChild(newChild);
			}
		}