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.Presentation.ContentPart : DocumentFormat.OpenXml.OpenXmlElement[] -> DocumentFormat.OpenXml.Presentation.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.Presentation.ContentPart : seq<DocumentFormat.OpenXml.OpenXmlElement> -> DocumentFormat.OpenXml.Presentation.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.Presentation.ContentPart : string -> DocumentFormat.OpenXml.Presentation.ContentPart
Public Sub New (outerXml As String)
Parameters
- outerXml
- String
Specifies the outer XML of the element.