Appearance
@shbernal/ts-pptx / index / TableCellLayout
Interface: TableCellLayout
Defined in: src/types/text.ts:619
One cell's computed rectangle from TsPptx.tableLayout. All values are inches; x/y are absolute (offset from the table's x/y). For a merged cell, row/col are the top-left origin and wIn/hIn cover the whole span; the cells it covers are not emitted separately.
Properties
col
col:
number
Defined in: src/types/text.ts:623
Zero-based grid column of the cell's top-left origin.
colSpan
colSpan:
number
Defined in: src/types/text.ts:627
Number of columns the cell spans (1 if not merged).
heightExact
heightExact:
boolean
Defined in: src/types/text.ts:641
true when hIn/yIn are pinned by an explicit rowH (array or scalar) or table h; false when the row is auto-height and the value is a conservative (tall) estimate from the same text model as TsPptx.measureText.
hIn
hIn:
number
Defined in: src/types/text.ts:635
Outer cell height in inches (sum of spanned row heights).
row
row:
number
Defined in: src/types/text.ts:621
Zero-based grid row of the cell's top-left origin.
rowSpan
rowSpan:
number
Defined in: src/types/text.ts:625
Number of rows the cell spans (1 if not merged).
wIn
wIn:
number
Defined in: src/types/text.ts:633
Outer cell width in inches (sum of spanned column widths).
xIn
xIn:
number
Defined in: src/types/text.ts:629
Left edge in inches (absolute).
yIn
yIn:
number
Defined in: src/types/text.ts:631
Top edge in inches (absolute).