WordprocessingDocument.FromFlatOpcDocument 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
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.
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.
- 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.