Table
Table:
{}Properties
Section titled “Properties”type:
"table"
replaceText
Section titled “replaceText”replaceText:
ReplaceTextSignature
Methods
Section titled “Methods”rows()
Section titled “rows()”rows():
TableRow[]
Returns
Section titled “Returns”TableRow[]
addRow()
Section titled “addRow()”addRow(
index?):TableRow
Parameters
Section titled “Parameters”index?
Section titled “index?”Returns
Section titled “Returns”removeRow()
Section titled “removeRow()”Parameters
Section titled “Parameters”Returns
Section titled “Returns”findSection()
Section titled “findSection()”Returns the Section containing this table, or undefined
if this table is not a body-level block (e.g. it is nested inside a
header, footer, or table cell, or has been removed from the body).
Returns
Section titled “Returns”Example
Section titled “Example”const block = body.content().blocklevels()[3];if (block.type === 'table') { const section = block.findSection(); section?.pageSetup().setPageMargins({ top: 36, bottom: 36, left: 72, right: 72 });}