Appearance
Class: TableRow ​
One table row (a:tr).
Constructors ​
Constructor ​
new TableRow(
tr,part,themeContext,style,rowIndex,rels):TableRow
Parameters ​
| Parameter | Type | Description |
|---|---|---|
tr | Element | - |
part | Part | - |
themeContext | ThemeContext | The owning slide's theme colour context, threaded to each TableCell. |
style | TableCellStyleContext | null | The table's style-resolution context, threaded to each cell for TableCell.resolvedFill; null when no style resolves. |
rowIndex | number | This row's zero-based index in the table, for style-graph banding/edge conditions. |
rels | Relationships | The 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 ​
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