<tc>
(Table Cell)
This element specifies a single cell in a table row, which contains the table’s content. Table cells in WordprocessingML are analogous to HTML td
elements.
A <tc>
element has one formatting child element, <tcPr (>
§2.4.67<)>
, which defines the properties for the cell. Each unique property on the table cell is specified by a child element of this element. As well, a table cell can contain any valid block-level content, which allows for the nesting of paragraphs and tables within table cells.
If a table cell does not include at least one block-level element, then this document shall be considered corrupt.
Hello World |
This table cell's content is represented by the following WordprocessingML:
<w:tc> <w:tcPr> <w:tcW w:w="0" w:type="auto"/> </w:tcPr> <w:p> <w:r> <w:t>Hello, World</w:t> </w:r> </w:p> </w:tc>
The <tc>
element contains a set of cell-level properties defined using the <tcPr>
element, and a single block-level element - in this case, a paragraph. ]
Child Elements |
Subclause |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Tc">
<sequence>
<element name="tcPr" type="CT_TcPr" minOccurs="0" maxOccurs="1"/>
<group ref="EG_BlockLevelElts" minOccurs="1" maxOccurs="unbounded"/>
</sequence>
</complexType>