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