HtmlNodeCollectionInsert(HtmlNodeItem, String) Method

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

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.3013.4544
C#
public HtmlNodeItem Insert(
	HtmlNodeItem beforeNode,
	string html
)

Parameters

beforeNode  HtmlNodeItem
The Node prior to which a new node will be inserted.
html  String
Html to insert.

Return Value

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

See Also