RemoveChild Method (HtmlNode)

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Removes the specified child node.

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

Syntax

C#
public HtmlNode RemoveChild(
	HtmlNode oldChild
)
Visual Basic
Public Function RemoveChild ( _
	oldChild As HtmlNode _
) As HtmlNode
Visual C++
public:
HtmlNode^ RemoveChild(
	HtmlNode^ oldChild
)

Parameters

oldChild
Type: HtmlAgilityPack..::..HtmlNode
The node being removed. May not be null.

Return Value

The node removed.

See Also