DocumentID: ECMA-376/Part4/2.4.62 Title: ECMA-376, Part4: 2.4.62 tc (Table Cell) Extracted-From: ECMA-376 Office Open XML File Formats, 1st Edition / December 2006 Warning: Coverted to HTML format by a script known to have bugs
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.
[Example: Consider a table consisting of a single table cell, which contains the text Hello World:
|
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. end example]
|
Parent Elements |
|
Child Elements |
Subclause |
|---|---|
|
altChunk (Anchor for Imported External Content) |
|
|
bookmarkEnd (Bookmark End) |
|
|
bookmarkStart (Bookmark Start) |
|
|
commentRangeEnd (Comment Anchor Range End) |
|
|
commentRangeStart (Comment Anchor Range Start) |
|
|
customXml (Block-Level Custom XML Element) |
|
|
customXmlDelRangeEnd (Custom XML Markup Deletion End) |
|
|
customXmlDelRangeStart (Custom XML Markup Deletion Start) |
|
|
customXmlInsRangeEnd (Custom XML Markup Insertion End) |
|
|
customXmlInsRangeStart (Custom XML Markup Insertion Start) |
|
|
customXmlMoveFromRangeEnd (Custom XML Markup Move Source End) |
|
|
customXmlMoveFromRangeStart (Custom XML Markup Move Source Start) |
|
|
customXmlMoveToRangeEnd (Custom XML Markup Move Destination Location End) |
|
|
customXmlMoveToRangeStart (Custom XML Markup Move Destination Location Start) |
|
|
del (Deleted Run Content) |
|
|
ins (Inserted Run Content) |
|
|
moveFrom (Move Source Run Content) |
|
|
moveFromRangeEnd (Move Source Location Container - End) |
|
|
moveFromRangeStart (Move Source Location Container - Start) |
|
|
moveTo (Move Destination Run Content) |
|
|
moveToRangeEnd (Move Destination Location Container - End) |
|
|
moveToRangeStart (Move Destination Location Container - Start) |
|
|
oMath (Office Math) |
|
|
oMathPara (Math Paragraph) |
|
|
p (Paragraph) |
|
|
permEnd (Range Permission End) |
|
|
permStart (Range Permission Start) |
|
|
proofErr (Proofing Error Anchor) |
|
|
sdt (Block-Level Structured Document Tag) |
|
|
tbl (Table) |
|
|
tcPr (Table Cell Properties) |
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>