---
title: "Types: editor: Tables"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Types: editor: Tables

## `TableOptions`

The table style options of PowerPoint's Table Design tab.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| --- | --- | --- |
| <a id="tableoptions-bandedcolumns" data-search="TableOptions.bandedColumns"></a>`bandedColumns` | <code>boolean</code> |  |
| <a id="tableoptions-bandedrows" data-search="TableOptions.bandedRows"></a>`bandedRows` | <code>boolean</code> |  |
| <a id="tableoptions-firstcolumn" data-search="TableOptions.firstColumn"></a>`firstColumn` | <code>boolean</code> |  |
| <a id="tableoptions-headerrow" data-search="TableOptions.headerRow"></a>`headerRow` | <code>boolean</code> |  |
| <a id="tableoptions-lastcolumn" data-search="TableOptions.lastColumn"></a>`lastColumn` | <code>boolean</code> |  |
| <a id="tableoptions-totalrow" data-search="TableOptions.totalRow"></a>`totalRow` | <code>boolean</code> |  |


## `TablePen`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| --- | --- | --- |
| <a id="tablepen-color" data-search="TablePen.color"></a>`color` | <code><a href="/office/pptx/api/types-editor-shapes-and-charts#shapecolor">ShapeColor</a></code> |  |
| <a id="tablepen-dash" data-search="TablePen.dash"></a>`dash` | <code><a href="/office/pptx/api/types-facade#presetlinedash">PresetLineDash</a> &#124; null</code> | null is Pen Style's No Border: Borders then clears the sides it names. |
| <a id="tablepen-weight" data-search="TablePen.weight"></a>`weight` | <code>number</code> | Points. |


## `TableStyleChoice`

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| --- | --- | --- |
| <a id="tablestylechoice-group" data-search="TableStyleChoice.group"></a>`group` | <code><a href="/office/pptx/api/types-editor-tables#tablestylegroup">TableStyleGroup</a></code> |  |
| <a id="tablestylechoice-id" data-search="TableStyleChoice.id"></a>`id` | <code>string</code> |  |
| <a id="tablestylechoice-name" data-search="TableStyleChoice.name"></a>`name` | <code>string</code> |  |
| <a id="tablestylechoice-preview" data-search="TableStyleChoice.preview"></a>`preview` | <code><a href="/office/pptx/api/types-editor-tables#tablestylepreviewcell">TableStylePreviewCell</a>[][]</code> | A 5 by 5 grid under the table's own style options, in the slide's theme. |


## `TableStyleGroup`

Import from `@reductoai/pptx/editor`.

```ts
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 |
| --- | --- | --- |
| <a id="tablestylepreviewcell-bottom" data-search="TableStylePreviewCell.bottom"></a>`bottom?` | <code>string</code> |  |
| <a id="tablestylepreviewcell-fill" data-search="TableStylePreviewCell.fill"></a>`fill?` | <code>string</code> |  |
| <a id="tablestylepreviewcell-left" data-search="TableStylePreviewCell.left"></a>`left?` | <code>string</code> |  |
| <a id="tablestylepreviewcell-right" data-search="TableStylePreviewCell.right"></a>`right?` | <code>string</code> |  |
| <a id="tablestylepreviewcell-text" data-search="TableStylePreviewCell.text"></a>`text?` | <code>string</code> |  |
| <a id="tablestylepreviewcell-top" data-search="TableStylePreviewCell.top"></a>`top?` | <code>string</code> |  |


## `TableView`

The table the selection is in, for a host's table tools.

Import from `@reductoai/pptx/editor`.

| Name | Type | Description |
| --- | --- | --- |
| <a id="tableview-canmerge" data-search="TableView.canMerge"></a>`canMerge` | <code>boolean</code> |  |
| <a id="tableview-cansplit" data-search="TableView.canSplit"></a>`canSplit` | <code>boolean</code> |  |
| <a id="tableview-cols" data-search="TableView.cols"></a>`cols` | <code>number</code> |  |
| <a id="tableview-height" data-search="TableView.height"></a>`height?` | <code>number</code> | The selected rows' laid height in points, when they share one. |
| <a id="tableview-key" data-search="TableView.key"></a>`key` | <code>string</code> |  |
| <a id="tableview-margins" data-search="TableView.margins"></a>`margins` | <code>Partial&lt;<a href="/office/pptx/api/types-editor-text-and-fonts#cellmargins">CellMargins</a>&gt;</code> | The selected cells' text insets in points; a side they differ on is absent. |
| <a id="tableview-options" data-search="TableView.options"></a>`options` | <code><a href="/office/pptx/api/types-editor-tables#tableoptions">TableOptions</a></code> |  |
| <a id="tableview-pen" data-search="TableView.pen"></a>`pen` | <code><a href="/office/pptx/api/types-editor-tables#tablepen">TablePen</a></code> | What Borders draws with: Pen Style, Pen Weight and Pen Color. |
| <a id="tableview-range" data-search="TableView.range"></a>`range` | <code><a href="/office/pptx/api/types-editor-other#cellrange">CellRange</a></code> | The selected cells, grown to whole merged areas; the caret's cell in text mode. |
| <a id="tableview-rows" data-search="TableView.rows"></a>`rows` | <code>number</code> |  |
| <a id="tableview-style" data-search="TableView.style"></a>`style?` | <code>string</code> | The table's `a:tableStyleId`; absent after Clear Table. |
| <a id="tableview-width" data-search="TableView.width"></a>`width?` | <code>number</code> | The selected columns' width in points, when they share one. |

Source: https://docs.reducto.ai/office/pptx/api/types-editor-tables/index.mdx
