w:tcW (Table Cell Width)

Specifies the preferred width of a table cell using a value and unit type.

Parent elements

Description

w:tcW specifies the preferred width of a table cell. It is defined in ECMA-376 Part 1 §17.4.72.

As with w:tblW, this is a preferred width and can be expressed in twips (dxa), percentage (pct), or automatic (auto). When cells span multiple columns via w:gridSpan, w:tcW should reflect the combined width of all spanned columns.

Attributes

Attribute Type Possible Values Description
w:w ST_MeasurementOrPercent Integer value interpreted according to w:type. Cell width value.
w:type ST_TblWidth dxa (twips), pct (fiftieths-of-a-percent), auto, nil Unit for w:w.

Examples

<w:tcPr>
  <w:tcW w:w="2880" w:type="dxa"/>
</w:tcPr>