alignment | Alignment | Placement of the table against the page column. |
cellSpacing | number | Extension (VBA Table.Spacing, Office.js TableStyle.cellSpacing): points of space between cells, the direct w:tblCellSpacing; 0 removes it. |
columnCount | number | read-only |
columns | HandleCollection<TableColumn> | read-only |
description | string | office.js Table.description: w:tblPr/w:tblDescription, the alt text of the table. |
endnotes | HandleCollection<NoteItem> | read-only office.js Table.endnotes: the endnotes referenced from inside the table. |
fields | FieldCollection | read-only office.js Table.fields: every field the table’s paragraphs hold, nested tables included. |
font | Font | read-only Run formatting over every cell’s text. |
footnotes | HandleCollection<NoteItem> | read-only office.js Table.footnotes: the footnotes referenced from inside the table. |
headerRowCount | number | Number of consecutive header rows from the top of the table. |
horizontalAlignment | Alignment | Direct paragraph alignment shared by every cell, or Mixed when it differs. |
isUniform | boolean | read-only True when every physical row contains the same number of cells. |
nestingLevel | number | read-only Top-level tables are level 1; each containing table adds one. |
parentBody | Body | read-only |
parentContentControl | ContentControl | read-only office.js Table.parentContentControl: the nearest w:sdt ancestor of the w:tbl. |
parentContentControlOrNullObject | ContentControl | read-only |
parentTable | Table | read-only |
parentTableCell | TableCell | read-only |
parentTableCellOrNullObject | TableCell & { isNullObject: boolean } | read-only |
parentTableOrNullObject | Table & { isNullObject: boolean } | read-only |
rowCount | number | read-only |
rows | TableRowCollection<TableRow> | read-only |
shading | ShadingUniversal | read-only |
shadingColor | string | |
style | string | undefined | The table’s style name: its direct w:tblStyle, or the document default table style. Accepts a style name, style ID, or OfficeJS BuiltInStyleName spelling on write; a Word built-in the document never defined (e.g. “Table Grid”) is injected with its factory definition. |
styleBandedColumns | boolean | |
styleBandedRows | boolean | |
styleBuiltIn | string | undefined | OfficeJS spelling: reads the Word built-in name (“TableGrid” even when the document’s ID is localized), falling back to the raw style ID for custom styles; writes like style. |
styleFirstColumn | boolean | |
styleFirstRow | boolean | The w:tblLook firstRow flag: whether the table style’s FirstRow condition paints. |
styleLastColumn | boolean | |
styleTotalRow | boolean | |
tableDirection | TableDirection | The table’s visual direction (w:bidiVisual): “RightToLeft” mirrors the grid, so logical column 0 paints at the right edge and cell handles keep their logical indices. Reads the effective value — direct property, else the table style chain — and writes an explicit direct property, so “LeftToRight” overrides an RTL table style. Null clears the direct property, so the style value shows through again. |
tables | TableCollection<Table> | read-only |
title | string | office.js Table.title: w:tblPr/w:tblCaption, the caption Word’s accessibility pane reads. |
values | string[][] | Cell text row by row, one entry per physical cell as Word reports it: a merged span is one entry, and a cell a vertical merge covers is left out. |
verticalAlignment | ”Mixed” | “Top” | “Bottom” | “Center” | Direct vertical alignment shared by every physical cell. |
width | number | Sum of the logical grid-column widths, in points. |