PrependChild Method

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Adds the specified node to the beginning of the list of children of this node.

Namespace: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
public HtmlNode PrependChild(
	HtmlNode newChild
)
Visual Basic
Public Function PrependChild ( _
	newChild As HtmlNode _
) As HtmlNode
Visual C++
public:
HtmlNode^ PrependChild(
	HtmlNode^ newChild
)

Parameters

newChild
Type: HtmlAgilityPack..::..HtmlNode
The node to add. May not be null.

Return Value

The node added.

See Also