SectionProperties
Defined in: src/core/document-model/types.ts:1691
§17.6.17 w:sectPr — a section’s page setup, header/footer refs and columns.
Properties
Section titled “Properties”columns?
Section titled “columns?”
readonlyoptionalcolumns?:SectionColumns
Defined in: src/core/document-model/types.ts:1724
§17.6.4 w:cols — multi-column section layout.
evenAndOddHeaders?
Section titled “evenAndOddHeaders?”
readonlyoptionalevenAndOddHeaders?:boolean
Defined in: src/core/document-model/types.ts:1722
ECMA-376 §17.15.1.36 — w:evenAndOddHeaders toggle in word/settings.xml
(document-wide, not per-section). When true even-numbered pages use the
even header/footer references.
footers
Section titled “footers”
readonlyfooters: readonlyHeaderFooterReference[]
Defined in: src/core/document-model/types.ts:1695
gridLinePitchPt?
Section titled “gridLinePitchPt?”
readonlyoptionalgridLinePitchPt?:Pt
Defined in: src/core/document-model/types.ts:1748
§17.6.5 w:docGrid — the line grid a lines/linesAndChars section rules
its text onto, as the pitch in points. Every line of the section’s text is
as tall as a whole number of these, however tall its own font makes it.
Absent ⇒ no grid (w:type="default", or none stated).
headers
Section titled “headers”
readonlyheaders: readonlyHeaderFooterReference[]
Defined in: src/core/document-model/types.ts:1694
lineNumbering?
Section titled “lineNumbering?”
readonlyoptionallineNumbering?:object
Defined in: src/core/document-model/types.ts:1707
§17.6.8 w:lnNumType — line numbers printed in the margin beside the text.
countBy
Section titled “countBy”
readonlycountBy:number
Print every countBy-th line (default 1).
distancePt?
Section titled “distancePt?”
readonlyoptionaldistancePt?:Pt
How far the number stands off the text (w:distance); absent ⇒ Word’s quarter inch.
restart
Section titled “restart”
readonlyrestart:"newPage"|"newSection"|"continuous"
§17.18.55 — where the count restarts.
readonlystart:number
The number the count starts at (default 1).
margins?
Section titled “margins?”
readonlyoptionalmargins?:PageMargins
Defined in: src/core/document-model/types.ts:1693
pageBorders?
Section titled “pageBorders?”
readonlyoptionalpageBorders?:object
Defined in: src/core/document-model/types.ts:1730
§17.6.10 w:pgBorders — the rules drawn around the page. offsetFrom
says what each edge’s spacePt is measured from: the paper’s edge, or the
text margin it stands outside of.
borders
Section titled “borders”
readonlyborders:CellBorders
offsetFrom
Section titled “offsetFrom”
readonlyoffsetFrom:"text"|"page"
pageNumberStart?
Section titled “pageNumberStart?”
readonlyoptionalpageNumberStart?:number
Defined in: src/core/document-model/types.ts:1705
§17.6.12 w:pgNumType w:start — the number the section’s first page is
printed with. Absent ⇒ the count carries on from the section before.
pageSize?
Section titled “pageSize?”
readonlyoptionalpageSize?:PageSize
Defined in: src/core/document-model/types.ts:1692
sectionStart?
Section titled “sectionStart?”
readonlyoptionalsectionStart?:"continuous"|"nextPage"|"oddPage"|"evenPage"
Defined in: src/core/document-model/types.ts:1741
§17.6.22 w:type — where the section starts. continuous starts it on the
page already in hand rather than a fresh one; nextPage on the next sheet;
oddPage and evenPage on the next sheet of that PARITY, which means a
blank one in between when the count falls wrong. (nextColumn is not
distinguished from nextPage.)
titlePg?
Section titled “titlePg?”
readonlyoptionaltitlePg?:boolean
Defined in: src/core/document-model/types.ts:1700
ECMA-376 §17.10.6 — w:titlePg toggle in sectPr. When true the first page
of the section uses the first header/footer references.