HtmlNodeItemClone Method

Return a deep copy of the provided HTML node item.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static HtmlNodeItem Clone(
	HtmlNodeItem node,
	List<string> uniqueIds = null
)

Parameters

node  HtmlNodeItem
Reference to the node to copy.
uniqueIds  ListString  (Optional)
Optional reference to a list of unique IDs for the document. If null, a list will be built from the root node.

Return Value

HtmlNodeItem
Reference to the newly cloned node, if a legitimate source was supplied. Otherwise, null.

See Also