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