HtmlDocumentInsert(HtmlDocument, String, String) Method

Insert the provided HTML before the specified Node in the appropriate level.

Definition

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

Parameters

document  HtmlDocument
Instance of an Html Document Object into which the new Node will be inserted.
beforeID  String
The Unique ID to find within the document.
html  String
HTML Content to Insert.

Return Value

HtmlNodeItem
Html Node Item constructed from the caller's HTML.

See Also