InsertAfter Method

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Inserts the specified node immediately after the specified reference node.

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

Syntax

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

Parameters

newChild
Type: HtmlAgilityPack..::..HtmlNode
The node to insert. May not be null.
refChild
Type: HtmlAgilityPack..::..HtmlNode
The node that is the reference node. The newNode is placed after the refNode.

Return Value

The node being inserted.

See Also