NodeInsertBefore Method
Inserts the node before the existing child node child. If child is null, insert node at the end of the list of children. If child is a DocumentFragment object, all of its children are inserted, in the same order, before child. If the child is already in the tree, it is first removed.

Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.11
Syntax
public Node InsertBefore(
	Node node,
	Node child
)

Parameters

node
Type: Aspose.Html.DomNode
The new child.
child
Type: Aspose.Html.DomNode
The ref child.

Return Value

Type: Node
Returns inserted node
See Also