Skip to content

Interface: TableCellDiagonals ​

A table cell's corner-to-corner rules (a:tcPr/a:lnTlToBr / a:lnBlToTr) — the "Diagonal Down Border" / "Diagonal Up Border" of PowerPoint's border gallery.

Deliberately its own object rather than two more entries on TableCellProps.border's tuple: widening that tuple to six would break every existing caller for a construct almost no deck uses, and the two diagonals are not edges — they do not participate in the perimeter, and they are not inherited by a merged region's covered cells.

Examples ​

ts
diagonal: { tlToBr: { type:'solid', color:'C00000', width:1 } } // strike a cell out
ts
diagonal: { tlToBr: { type:'solid' }, blToTr: { type:'solid' } } // an X across the cell

Properties ​

blToTr? ​

optional blToTr?: StrokeProps

Bottom-left to top-right (╱, a:lnBlToTr).


tlToBr? ​

optional tlToBr?: StrokeProps

Top-left to bottom-right (╲, a:lnTlToBr).