HtmlDocumentInsertAfter Method

Insert a new node after the specified Node in this collection.

Definition

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

Parameters

document  HtmlDocument
Instance of an Html Document Object into which the new Node will be inserted.
afterNode  HtmlNodeItem
The Node after 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