Skip to main content

TableBorder

Import from @reductoai/docx/node, @reductoai/docx/officejs.

TableBorder properties

TableBorder.set()

TableCellCollection

OfficeJS cell-collection operations over the live cells of a table row. Import from @reductoai/docx/node, @reductoai/docx/officejs.

TableCellCollection properties

TableCellCollection.at()

TableCellCollection.autoFit()

Fit every represented uniform column to its widest cell content.

TableCellCollection.delete()

Delete the row-scoped selection with Office’s shift policy.

TableCellCollection.distributeHeight()

Equalize the distinct rows represented by the selected cells.

TableCellCollection.distributeWidth()

Equalize selected uniform logical columns while preserving their total width.

TableCellCollection.getFirst()

TableCellCollection.getFirstOrNullObject()

OfficeJS null-object variant; inspect isNullObject before other members.

TableCellCollection.getItem()

OfficeJS spelling of at().

TableCellCollection.getLast()

TableCellCollection.getLastOrNullObject()

OfficeJS null-object variant; inspect isNullObject before other members.

TableCellCollection.merge()

Merge the contiguous cells represented by this row-scoped collection.

TableCellCollection.setHeight()

Set the height of every distinct row represented by the collection.

TableCellCollection.setWidth()

Set selected logical columns to a point width using Word’s ruler-style spelling.

TableCellCollection.split()

Split each cell, or merge the collection first and split the result.

TableCollection

OfficeJS-flavored live collection: items is recomputed on every access. Import from @reductoai/docx/node, @reductoai/docx/officejs.

TableCollection properties

TableCollection.at()

TableCollection.getFirst()

TableCollection.getFirstOrNullObject()

OfficeJS null-object variant; inspect isNullObject before other members.

TableCollection.getItem()

OfficeJS spelling of at().

TableCollection.getLast()

TableCollection.getLastOrNullObject()

OfficeJS null-object variant; inspect isNullObject before other members.

TableColumn

Import from @reductoai/docx/node, @reductoai/docx/officejs.

TableColumn properties

TableColumn.autoFit()

Fit the column to the widest unwrapped line using OOXML point sizes.

TableColumn.delete()

Remove the column through Table.deleteColumns, so it inherits that door’s tracked behavior: under changeTrackingMode TrackAll/TrackMine every cell is marked w:cellDel with its content struck and the grid keeps the column until the revision is accepted; untracked, the cells and the w:gridCol go.

TableColumn.set()

TableColumn.setWidth()

Word’s ruler-free width write: the column takes columnWidth points.

TableColumn.sort()

office.js TableColumn.sort: this column’s cells, ascending, the other columns stay; options as VBA Column.Sort. Not implemented. These Office.js members throw: borders, select.

TableRowCollection

OfficeJS table-row collection operations over a live row set. Import from @reductoai/docx/node, @reductoai/docx/officejs.

TableRowCollection properties

TableRowCollection.at()

TableRowCollection.convertToText()

TableRowCollection.delete()

Delete every row in the collection, last-to-first so live indexes remain stable.

TableRowCollection.distributeHeight()

TableRowCollection.getFirst()

TableRowCollection.getFirstOrNullObject()

OfficeJS null-object variant; inspect isNullObject before other members.

TableRowCollection.getItem()

OfficeJS spelling of at().

TableRowCollection.getLast()

TableRowCollection.getLastOrNullObject()

OfficeJS null-object variant; inspect isNullObject before other members.

TableRowCollection.setHeight()

TableRowCollection.setLeftIndent()

Not implemented. These Office.js members throw: select.

TableStyle

Table formatting of a table style. Import from @reductoai/docx/node, @reductoai/docx/officejs.

TableStyle properties

TableStyle.condition()

Formatting of one table area (w:tblStylePr). The block is resolved on every access and created by the first write, so reading a condition never changes the document.

TableStyle.set()