OpenXmlElement.CloneNode Method

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

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

Syntax

声明
Public Overridable Function CloneNode ( _
    deep As Boolean _
) As OpenXmlElement
用法
Dim instance As OpenXmlElement
Dim deep As Boolean
Dim returnValue As OpenXmlElement

returnValue = instance.CloneNode(deep)
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.

See Also

Reference

OpenXmlElement Class

OpenXmlElement Members

DocumentFormat.OpenXml Namespace