OpenXmlElement.CloneNode method

Office 2013 and later

When overridden in a derived class, creates a duplicate of the node.

Namespace:  DocumentFormat.OpenXml
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public virtual OpenXmlElement CloneNode(
	bool deep
)

Parameters

deep
Type: System.Boolean

true to recursively clone the subtree under the specified node; false to clone only the node itself.

Return value

Type: DocumentFormat.OpenXml.OpenXmlElement
The cloned node.
Show: