Skip to content

Section

Defined in: src/core/document-model/types.ts:2206

One section descriptor for a multi-section document (ECMA-376 §17.6.17). Each section’s sectPr lives either inside a paragraph’s pPr (mid-document break) or as the final child of w:body (final section). Records the properties and the upper-exclusive bound in BodyElement[] the section covers — section i applies to body[sections[i-1].endIndex..sections[i].endIndex).

readonly endIndex: number

Defined in: src/core/document-model/types.ts:2208


readonly properties: SectionProperties

Defined in: src/core/document-model/types.ts:2207


readonly optional sheet?: object

Defined in: src/core/document-model/types.ts:2216

The worksheet this section IS, where a workbook was projected for a screen rather than for paper (ProjectSheetOptions.screen): its tab’s name. Such a section is one surface with no pages — the grid as Excel shows it — and a float in it is placed from the surface’s top-left corner, which is the corner of the first cell.

readonly name: string