PresentationDocument.CreateClone Method

Definition

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 override DocumentFormat.OpenXml.Packaging.OpenXmlPackage CreateClone (System.IO.Packaging.Package package);
override this.CreateClone : System.IO.Packaging.Package -> DocumentFormat.OpenXml.Packaging.OpenXmlPackage
Protected Overrides 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 override DocumentFormat.OpenXml.Packaging.OpenXmlPackage CreateClone (System.IO.Stream stream);
override this.CreateClone : System.IO.Stream -> DocumentFormat.OpenXml.Packaging.OpenXmlPackage
Protected Overrides 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 override DocumentFormat.OpenXml.Packaging.OpenXmlPackage CreateClone (string path);
override this.CreateClone : string -> DocumentFormat.OpenXml.Packaging.OpenXmlPackage
Protected Overrides 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.

Applies to