Skip to content

Class: TableRow ​

One table row (a:tr).

Constructors ​

Constructor ​

new TableRow(tr, part, themeContext, style, rowIndex, rels): TableRow

Parameters ​

ParameterTypeDescription
trElement-
partPart-
themeContextThemeContextThe owning slide's theme colour context, threaded to each TableCell.
styleTableCellStyleContext | nullThe table's style-resolution context, threaded to each cell for TableCell.resolvedFill; null when no style resolves.
rowIndexnumberThis row's zero-based index in the table, for style-graph banding/edge conditions.
relsRelationshipsThe owning slide's relationships, threaded to each cell for TableCell.pictureFill.

Returns ​

TableRow

Accessors ​

cells ​

Get Signature ​

get cells(): TableCell[]

The row's cells (a:tc) in left-to-right order.

Returns ​

TableCell[]


element_ ​

Get Signature ​

get element_(): Element

Escape hatch: the underlying a:tr element. After mutating it call markDirty, or save() writes the original bytes.

Returns ​

Element


heightEmu ​

Get Signature ​

get heightEmu(): number | null

Row height in EMU (a:tr/@h), or null if unset.

Returns ​

number | null

Methods ​

markDirty() ​

markDirty(): void

Mark the owning part dirty so save() reserializes it. Call after mutating element_.

Returns ​

void