Поделиться через


OpenXmlElement.Clone Method

Creates a duplicate of this node.

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

Syntax

'Declaration
Public Function Clone As Object
'Usage
Dim instance As OpenXmlElement
Dim returnValue As Object

returnValue = instance.Clone()
public Object Clone()

Return Value

Type: System.Object
The cloned node.

Implements

ICloneable.Clone()

Remarks

Cloning an OpenXmlNode copies all attributes and their values, including those generated by the XML processor to represent defaulted attributes. This method recursively clones the node and the subtree underneath it. Clone is equivalent to calling CloneNode(true).

See Also

Reference

OpenXmlElement Class

OpenXmlElement Members

DocumentFormat.OpenXml Namespace