Document Constructors
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
Document() |
Initializes a new instance of the Document class. |
Document(OpenXmlElement[]) |
Initializes a new instance of the Document class with the specified child elements. |
Document(IEnumerable<OpenXmlElement>) |
Initializes a new instance of the Document class with the specified child elements. |
Document(String) |
Initializes a new instance of the Document class from outer XML. |
Document()
Initializes a new instance of the Document class.
public Document ();
Public Sub New ()
Applies to
Document(OpenXmlElement[])
Initializes a new instance of the Document class with the specified child elements.
public Document (params DocumentFormat.OpenXml.OpenXmlElement[] childElements);
new DocumentFormat.OpenXml.Wordprocessing.Document : DocumentFormat.OpenXml.OpenXmlElement[] -> DocumentFormat.OpenXml.Wordprocessing.Document
Public Sub New (ParamArray childElements As OpenXmlElement())
Parameters
- childElements
- OpenXmlElement[]
Specifies the child elements.
Applies to
Document(IEnumerable<OpenXmlElement>)
Initializes a new instance of the Document class with the specified child elements.
public Document (System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.OpenXmlElement> childElements);
new DocumentFormat.OpenXml.Wordprocessing.Document : seq<DocumentFormat.OpenXml.OpenXmlElement> -> DocumentFormat.OpenXml.Wordprocessing.Document
Public Sub New (childElements As IEnumerable(Of OpenXmlElement))
Parameters
- childElements
- IEnumerable<OpenXmlElement>
Specifies the child elements.
Applies to
Document(String)
Initializes a new instance of the Document class from outer XML.
public Document (string outerXml);
new DocumentFormat.OpenXml.Wordprocessing.Document : string -> DocumentFormat.OpenXml.Wordprocessing.Document
Public Sub New (outerXml As String)
Parameters
- outerXml
- String
Specifies the outer XML of the element.