OpenXmlPackage.OpenClone 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
OpenClone(Stream, Boolean, OpenSettings) |
Opens the cloned OpenXml package on the given stream. |
OpenClone(String, Boolean, OpenSettings) |
Opens the cloned OpenXml package on the given file. |
OpenClone(Stream, Boolean, OpenSettings)
Opens the cloned OpenXml package on the given stream.
protected abstract DocumentFormat.OpenXml.Packaging.OpenXmlPackage OpenClone (System.IO.Stream stream, bool isEditable, DocumentFormat.OpenXml.Packaging.OpenSettings openSettings);
abstract member OpenClone : System.IO.Stream * bool * DocumentFormat.OpenXml.Packaging.OpenSettings -> DocumentFormat.OpenXml.Packaging.OpenXmlPackage
Protected MustOverride Function OpenClone (stream As Stream, isEditable As Boolean, openSettings As OpenSettings) As OpenXmlPackage
Parameters
- stream
- Stream
The stream on which the cloned OpenXml package will be opened.
- isEditable
- Boolean
In ReadWrite mode. False for Read only mode.
- openSettings
- OpenSettings
The advanced settings for opening a document.
Returns
A new instance of OpenXmlPackage.
Applies to
OpenClone(String, Boolean, OpenSettings)
Opens the cloned OpenXml package on the given file.
protected abstract DocumentFormat.OpenXml.Packaging.OpenXmlPackage OpenClone (string path, bool isEditable, DocumentFormat.OpenXml.Packaging.OpenSettings openSettings);
abstract member OpenClone : string * bool * DocumentFormat.OpenXml.Packaging.OpenSettings -> DocumentFormat.OpenXml.Packaging.OpenXmlPackage
Protected MustOverride Function OpenClone (path As String, isEditable As Boolean, openSettings As OpenSettings) As OpenXmlPackage
Parameters
- path
- String
The path and file name of the target OpenXml package.
- isEditable
- Boolean
In ReadWrite mode. False for Read only mode.
- openSettings
- OpenSettings
The advanced settings for opening a document.
Returns
A new instance of OpenXmlPackage.