Represents a table in a WordprocessingML document.
A table is a set of paragraphs (and other block-level content) arranged in rows and columns. Tables are used to organize content into a grid structure.
Reference: http://officeopenxml.com/WPtable.php
<xsd:complexType name="CT_Tbl"> <xsd:sequence> <xsd:group ref="EG_RangeMarkupElements" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="tblPr" type="CT_TblPr"/> <xsd:element name="tblGrid" type="CT_TblGrid"/> <xsd:group ref="EG_ContentRowContent" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence></xsd:complexType> Copy
<xsd:complexType name="CT_Tbl"> <xsd:sequence> <xsd:group ref="EG_RangeMarkupElements" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="tblPr" type="CT_TblPr"/> <xsd:element name="tblGrid" type="CT_TblGrid"/> <xsd:group ref="EG_ContentRowContent" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence></xsd:complexType>
new Table({ rows: [ new TableRow({ children: [ new TableCell({ children: [new Paragraph("Cell 1")] }), new TableCell({ children: [new Paragraph("Cell 2")] }), ], }), ],}); Copy
new Table({ rows: [ new TableRow({ children: [ new TableCell({ children: [new Paragraph("Cell 1")] }), new TableCell({ children: [new Paragraph("Cell 2")] }), ], }), ],});
Readonly
Marker property identifying this as a FileChild
Do not use this method. It is only used internally by the library. It will be removed in a future version.
Represents a table in a WordprocessingML document.
A table is a set of paragraphs (and other block-level content) arranged in rows and columns. Tables are used to organize content into a grid structure.
Reference: http://officeopenxml.com/WPtable.php
XSD Schema
Example