Share via


OpenXmlElement.CloneNode(Boolean) Method

Definition

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

public virtual DocumentFormat.OpenXml.OpenXmlElement CloneNode (bool deep);
abstract member CloneNode : bool -> DocumentFormat.OpenXml.OpenXmlElement
override this.CloneNode : bool -> DocumentFormat.OpenXml.OpenXmlElement
Public Overridable Function CloneNode (deep As Boolean) As OpenXmlElement

Parameters

deep
Boolean

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

Returns

The cloned node.

Applies to