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