PresentationDocument.FromFlatOpcDocument Method

Definition

Overloads

FromFlatOpcDocument(XDocument)

Creates a new editable instance of PresentationDocument from an XDocument in Flat OPC format, opened on a MemoryStream.

FromFlatOpcDocument(XDocument, Package)

Creates a new instance of PresentationDocument from a presentation in Flat OPC format on the specified instance of Package.

FromFlatOpcDocument(XDocument, Stream, Boolean)

Creates a new instance of PresentationDocument from a presentation in Flat OPC format.

FromFlatOpcDocument(XDocument, String, Boolean)

Creates a new instance of PresentationDocument from a presentation in Flat OPC format.

FromFlatOpcDocument(XDocument)

Creates a new editable instance of PresentationDocument from an XDocument in Flat OPC format, opened on a MemoryStream.

public static DocumentFormat.OpenXml.Packaging.PresentationDocument FromFlatOpcDocument (System.Xml.Linq.XDocument document);
static member FromFlatOpcDocument : System.Xml.Linq.XDocument -> DocumentFormat.OpenXml.Packaging.PresentationDocument
Public Shared Function FromFlatOpcDocument (document As XDocument) As PresentationDocument

Parameters

document
XDocument

The document in Flat OPC format.

Returns

A new instance of PresentationDocument.

Applies to

FromFlatOpcDocument(XDocument, Package)

Creates a new instance of PresentationDocument from a presentation in Flat OPC format on the specified instance of Package.

public static DocumentFormat.OpenXml.Packaging.PresentationDocument FromFlatOpcDocument (System.Xml.Linq.XDocument document, System.IO.Packaging.Package package);
static member FromFlatOpcDocument : System.Xml.Linq.XDocument * System.IO.Packaging.Package -> DocumentFormat.OpenXml.Packaging.PresentationDocument
Public Shared Function FromFlatOpcDocument (document As XDocument, package As Package) As PresentationDocument

Parameters

document
XDocument

The presentation in Flat OPC format.

package
Package

The specified instance of Package.

Returns

A new instance of PresentationDocument.

Applies to

FromFlatOpcDocument(XDocument, Stream, Boolean)

Creates a new instance of PresentationDocument from a presentation in Flat OPC format.

public static DocumentFormat.OpenXml.Packaging.PresentationDocument FromFlatOpcDocument (System.Xml.Linq.XDocument document, System.IO.Stream stream, bool isEditable);
static member FromFlatOpcDocument : System.Xml.Linq.XDocument * System.IO.Stream * bool -> DocumentFormat.OpenXml.Packaging.PresentationDocument
Public Shared Function FromFlatOpcDocument (document As XDocument, stream As Stream, isEditable As Boolean) As PresentationDocument

Parameters

document
XDocument

The presentation in Flat OPC format.

stream
Stream

The stream on which the PresentationDocument will be created.

isEditable
Boolean

In ReadWrite mode. False for Read only mode.

Returns

A new instance of PresentationDocument.

Applies to

FromFlatOpcDocument(XDocument, String, Boolean)

Creates a new instance of PresentationDocument from a presentation in Flat OPC format.

public static DocumentFormat.OpenXml.Packaging.PresentationDocument FromFlatOpcDocument (System.Xml.Linq.XDocument document, string path, bool isEditable);
static member FromFlatOpcDocument : System.Xml.Linq.XDocument * string * bool -> DocumentFormat.OpenXml.Packaging.PresentationDocument
Public Shared Function FromFlatOpcDocument (document As XDocument, path As String, isEditable As Boolean) As PresentationDocument

Parameters

document
XDocument

The presentation in Flat OPC format.

path
String

The path and file name of the target PresentationDocument.

isEditable
Boolean

In ReadWrite mode. False for Read only mode.

Returns

A new instance of PresentationDocument.

Applies to