Cell node for table content. Supports formatting, spans, and borders. Created automatically by table commands - see Table extension.

OOXML Structure

<w:tc>
  <w:tcPr>
    <w:tcW w:w="2880" w:type="dxa"/>
    <w:cnfStyle w:val="100000000000"/>  <!-- Header cell styling -->
  </w:tcPr>
  <w:p>
    <w:pPr>
      <w:pStyle w:val="TableHeader"/>   <!-- Header paragraph style -->
    </w:pPr>
    <w:r>
      <w:rPr>
        <w:b/>                           <!-- Bold by default -->
      </w:rPr>
      <w:t>Header text</w:t>
    </w:r>
  </w:p>
</w:tc>

Attributes

colspan
number
default:"1"
Number of columns this cell spans
rowspan
number
default:"1"
Number of rows this cell spans
colwidth
Array.<number>
default:"[100]"
Column widths array in pixels
background
CellBackground
Cell background color configuration
verticalAlign
string
Vertical content alignment (top, middle, bottom)
cellMargins
CellMargins
Internal cell padding
borders
CellBorders
Cell border configuration

Types

CellBorder

Cell border configuration

CellBorders

Cell borders object

CellMargins

Cell margins configuration

CellBackground

Cell background configuration