OpenXmlPackage.CreateClone Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateClone(Package) |
Creates a new instance of OpenXmlPackage on the specified instance of Package. |
CreateClone(Stream) |
Creates a new OpenXmlPackage on the given stream. |
CreateClone(String) |
Creates a new OpenXml package on the given file. |
CreateClone(Package)
Creates a new instance of OpenXmlPackage on the specified instance of Package.
protected abstract DocumentFormat.OpenXml.Packaging.OpenXmlPackage CreateClone (System.IO.Packaging.Package package);
abstract member CreateClone : System.IO.Packaging.Package -> DocumentFormat.OpenXml.Packaging.OpenXmlPackage
Protected MustOverride Function CreateClone (package As Package) As OpenXmlPackage
Parameters
- package
- Package
The specified instance of Package.
Returns
A new instance of OpenXmlPackage.
Applies to
CreateClone(Stream)
Creates a new OpenXmlPackage on the given stream.
protected abstract DocumentFormat.OpenXml.Packaging.OpenXmlPackage CreateClone (System.IO.Stream stream);
abstract member CreateClone : System.IO.Stream -> DocumentFormat.OpenXml.Packaging.OpenXmlPackage
Protected MustOverride Function CreateClone (stream As Stream) As OpenXmlPackage
Parameters
- stream
- Stream
The stream on which the concrete OpenXml package will be created.
Returns
A new instance of OpenXmlPackage.
Applies to
CreateClone(String)
Creates a new OpenXml package on the given file.
protected abstract DocumentFormat.OpenXml.Packaging.OpenXmlPackage CreateClone (string path);
abstract member CreateClone : string -> DocumentFormat.OpenXml.Packaging.OpenXmlPackage
Protected MustOverride Function CreateClone (path As String) As OpenXmlPackage
Parameters
- path
- String
The path and file name of the target OpenXml package.
Returns
A new instance of OpenXmlPackage.