HtmlNodeCollectionInsert(Int32, String, Boolean) 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 HtmlNodeItem Insert(
	int beforeIndex,
	string html,
	bool parse = true
)

Parameters

beforeIndex  Int32
The index of the node prior to which a new node will be inserted.
html  String
Html to insert.
parse  Boolean  (Optional)
Value indicating whether to parse the text (true), or to just insert it as-is (false).

Return Value

HtmlNodeItem
Newly created and added Node.

See Also