다음을 통해 공유


WordprocessingDocument.FromFlatOpcDocument Method

Definition

Overloads

FromFlatOpcDocument(XDocument)

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

FromFlatOpcDocument(XDocument, Package)

Creates a new instance of WordprocessingDocument from an XDocument in Flat OPC format.

FromFlatOpcDocument(XDocument, Stream, Boolean)

Creates a new instance of WordprocessingDocument from an XDocument in Flat OPC format.

FromFlatOpcDocument(XDocument, String, Boolean)

Creates a new instance of WordprocessingDocument from an XDocument in Flat OPC format.

FromFlatOpcDocument(XDocument)

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

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

Parameters

document
XDocument

The document in Flat OPC format.

Returns

A new instance of WordprocessingDocument.

Applies to

FromFlatOpcDocument(XDocument, Package)

Creates a new instance of WordprocessingDocument from an XDocument in Flat OPC format.

public static DocumentFormat.OpenXml.Packaging.WordprocessingDocument 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.WordprocessingDocument
Public Shared Function FromFlatOpcDocument (document As XDocument, package As Package) As WordprocessingDocument

Parameters

document
XDocument

The document in Flat OPC format.

package
Package

The Package of the target WordprocessingDocument.

Returns

A new instance of WordprocessingDocument.

Applies to

FromFlatOpcDocument(XDocument, Stream, Boolean)

Creates a new instance of WordprocessingDocument from an XDocument in Flat OPC format.

public static DocumentFormat.OpenXml.Packaging.WordprocessingDocument 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.WordprocessingDocument
Public Shared Function FromFlatOpcDocument (document As XDocument, stream As Stream, isEditable As Boolean) As WordprocessingDocument

Parameters

document
XDocument

The document in Flat OPC format.

stream
Stream

The Stream on which the WordprocessingDocument will be created.

isEditable
Boolean

In ReadWrite mode. False for Read only mode.

Returns

A new instance of WordprocessingDocument.

Applies to

FromFlatOpcDocument(XDocument, String, Boolean)

Creates a new instance of WordprocessingDocument from an XDocument in Flat OPC format.

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

Parameters

document
XDocument

The document in Flat OPC format.

path
String

The path and file name of the target WordprocessingDocument.

isEditable
Boolean

In ReadWrite mode. False for Read only mode.

Returns

A new instance of WordprocessingDocument.

Applies to