Skip to main content

DrawingML Tables - Rows, Cells and Cell Content

A table is comprised of one or more rows, and a row contains one or more cells.

A table row is defined with the <a:tr> element. The row element can contain a height attribute (h), as either EMUs or as a number followed by a unit identifier. The row element contains one or more cell elements (<a:tc>).

All content within a table is defined within the cell element. A cell can contain only text. A cell may also have properties. (Note that a table may also have properties, but a row does not have properties other than a height.) The permitted child elements of <a:tc> include <a:txBody> for text and <a:tcPr> for cell properties.

A cell may also have the following attributes, which are discussed more fully at DrawingML - Tables - Structure.

AttributeDescription
gridSpanSpecifies the number of columns that a merged cell spans. Used in combination with the hMerge attribute on other cells in order to specify the beginning cell of a horizontal merge