ParagraphProperties
Defined in: src/core/document-model/types.ts:83
ECMA-376 Part 1 §17.3.1 — Paragraph Properties (pPr). All lengths in
canonical Pt (converted from twips by the parser); all fields optional for
cascade inheritance.
indentFirstLine encodes both <w:ind w:firstLine="…"/> (positive value)
and <w:ind w:hanging="…"/> (stored as the negative twips, so a hanging
indent of 360 twips becomes indentFirstLine = -18pt — the first line ends up
360 twips to the left of indentLeft).
Properties
Section titled “Properties”alignment?
Section titled “alignment?”
readonlyoptionalalignment?:Alignment
Defined in: src/core/document-model/types.ts:85
readonlyoptionalbidi?:boolean
Defined in: src/core/document-model/types.ts:105
ECMA-376 §17.3.1.6 — w:bidi. Sets the paragraph’s base direction to RTL,
so the BiDi paragraph embedding level is 1 and default alignment is right.
indentFirstLine?
Section titled “indentFirstLine?”
readonlyoptionalindentFirstLine?:Pt
Defined in: src/core/document-model/types.ts:92
indentLeft?
Section titled “indentLeft?”
readonlyoptionalindentLeft?:Pt
Defined in: src/core/document-model/types.ts:90
indentRight?
Section titled “indentRight?”
readonlyoptionalindentRight?:Pt
Defined in: src/core/document-model/types.ts:91
numbering?
Section titled “numbering?”
readonlyoptionalnumbering?:NumberingReference
Defined in: src/core/document-model/types.ts:95
outlineLevel?
Section titled “outlineLevel?”
readonlyoptionaloutlineLevel?:number
Defined in: src/core/document-model/types.ts:110
ECMA-376 §17.3.1.20 — w:outlineLvl. Outline level 0–8 maps to Heading 1–9;
9 (or absent) is body text. Drives tagged-PDF heading structure (H1–H6).
pageBreakBefore?
Section titled “pageBreakBefore?”
readonlyoptionalpageBreakBefore?:boolean
Defined in: src/core/document-model/types.ts:100
ECMA-376 Part 1 §17.3.1.21 — w:pageBreakBefore. When true, the paragraph
starts on a fresh page even if there is room on the current one.
runProperties?
Section titled “runProperties?”
readonlyoptionalrunProperties?:RunProperties
Defined in: src/core/document-model/types.ts:94
The implicit default run properties for runs in this paragraph (w:pPr/w:rPr).
spacingAfter?
Section titled “spacingAfter?”
readonlyoptionalspacingAfter?:Pt
Defined in: src/core/document-model/types.ts:87
spacingBefore?
Section titled “spacingBefore?”
readonlyoptionalspacingBefore?:Pt
Defined in: src/core/document-model/types.ts:86
spacingLine?
Section titled “spacingLine?”
readonlyoptionalspacingLine?:Pt
Defined in: src/core/document-model/types.ts:88
spacingLineRule?
Section titled “spacingLineRule?”
readonlyoptionalspacingLineRule?:"auto"|"exact"|"atLeast"
Defined in: src/core/document-model/types.ts:89
styleId?
Section titled “styleId?”
readonlyoptionalstyleId?:string
Defined in: src/core/document-model/types.ts:84