HtmlDocumentInsert(HtmlDocument, HtmlNodeItem) Method

Insert a new node prior to the specified Node in this collection.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static HtmlNodeItem Insert(
	HtmlDocument document,
	HtmlNodeItem beforeNode
)

Parameters

document  HtmlDocument
Instance of an Html Document Object into which the new Node will be inserted.
beforeNode  HtmlNodeItem
The Node prior to which a new node will be inserted.

Return Value

HtmlNodeItem
Newly created and added Node, if the insertion point was found. Null otherwise.

See Also