TableOptions
The table style options of PowerPoint’s Table Design tab.
Import from @reductoai/pptx/editor.
| Name | Type | Description |
|---|---|---|
bandedColumns |
boolean |
|
bandedRows |
boolean |
|
firstColumn |
boolean |
|
headerRow |
boolean |
|
lastColumn |
boolean |
|
totalRow |
boolean |
TablePen
Import from @reductoai/pptx/editor.
| Name | Type | Description |
|---|---|---|
color |
ShapeColor |
|
dash |
PresetLineDash | null |
null is Pen Style’s No Border: Borders then clears the sides it names. |
weight |
number |
Points. |
TableStyleChoice
Import from @reductoai/pptx/editor.
| Name | Type | Description |
|---|---|---|
group |
TableStyleGroup |
|
id |
string |
|
name |
string |
|
preview |
TableStylePreviewCell[][] |
A 5 by 5 grid under the table’s own style options, in the slide’s theme. |
TableStyleGroup
Import from @reductoai/pptx/editor.
type TableStyleGroup = "custom" | "best" | "light" | "medium" | "dark"TableStylePreviewCell
One cell of a preview: fill, text colour and the rule on each edge, as #rrggbb.
Import from @reductoai/pptx/editor.
| Name | Type | Description |
|---|---|---|
bottom? |
string |
|
fill? |
string |
|
left? |
string |
|
right? |
string |
|
text? |
string |
|
top? |
string |
TableView
The table the selection is in, for a host’s table tools.
Import from @reductoai/pptx/editor.
| Name | Type | Description |
|---|---|---|
canMerge |
boolean |
|
canSplit |
boolean |
|
cols |
number |
|
height? |
number |
The selected rows’ laid height in points, when they share one. |
key |
string |
|
margins |
Partial<CellMargins> |
The selected cells’ text insets in points; a side they differ on is absent. |
options |
TableOptions |
|
pen |
TablePen |
What Borders draws with: Pen Style, Pen Weight and Pen Color. |
range |
CellRange |
The selected cells, grown to whole merged areas; the caret’s cell in text mode. |
rows |
number |
|
style? |
string |
The table’s a:tableStyleId; absent after Clear Table. |
width? |
number |
The selected columns’ width in points, when they share one. |