Run
Defined in: src/core/document-model/types.ts:268
ECMA-376 Part 1 §17.3.2 — a run: a span of text (or an inline image / math
object) sharing one set of RunProperties, plus the reference markers
(hyperlink, note, comment, page-number field) the layout acts on.
Properties
Section titled “Properties”anchor?
Section titled “anchor?”
readonlyoptionalanchor?:string
Defined in: src/core/document-model/types.ts:292
§17.16.22 w:hyperlink @w:anchor — internal link target: a bookmark name
in this document (never a URL — bypasses the scheme allowlist).
commentRangeRefs?
Section titled “commentRangeRefs?”
readonlyoptionalcommentRangeRefs?: readonlystring[]
Defined in: src/core/document-model/types.ts:305
§17.13.4.3/4 w:commentRangeStart/End — the ids of the comment ranges
this run falls inside (a run may be covered by several). Renderers highlight
the covered span; the marker run (commentRef) sits at the range’s end.
commentRef?
Section titled “commentRef?”
readonlyoptionalcommentRef?:string
Defined in: src/core/document-model/types.ts:299
§17.13.4.1 w:commentReference — the run anchors a review comment by id;
the comment’s content/author live in FlowDoc.comments.
endnoteRef?
Section titled “endnoteRef?”
readonlyoptionalendnoteRef?:string
Defined in: src/core/document-model/types.ts:294
field?
Section titled “field?”
readonlyoptionalfield?:"PAGE"|"NUMPAGES"
Defined in: src/core/document-model/types.ts:284
§17.16.5.35 PAGE / §17.16.5.33 NUMPAGES — the run is a page-number field;
text holds the source’s cached result. Header/footer rendering
substitutes the real number per page; body rendering keeps the cache.
footnoteRef?
Section titled “footnoteRef?”
readonlyoptionalfootnoteRef?:string
Defined in: src/core/document-model/types.ts:293
readonlyoptionalhref?:string
Defined in: src/core/document-model/types.ts:278
ECMA-376 §17.16.22 — the run sits inside a w:hyperlink whose r:id
resolved to an external target. The URL is stored as written in the rels
part; writers MUST pass it through the scheme allowlist (core/links)
before emitting anything clickable.
inlineImage?
Section titled “inlineImage?”
readonlyoptionalinlineImage?:InlineImage
Defined in: src/core/document-model/types.ts:317
When set, the run renders this image inline in the line; text is ignored.
listMarker?
Section titled “listMarker?”
readonlyoptionallistMarker?:true
Defined in: src/core/document-model/types.ts:315
The run is a list-item marker materialized by applyNumbering ("1.",
"•"). Tagged PDF wraps its glyphs in a Lbl structure element (§14.8.4.3.3).
readonlyoptionalmath?:MathNode
Defined in: src/core/document-model/types.ts:319
When set, the run is an inline OfficeMath object; text is ignored.
native?
Section titled “native?”
readonlyoptionalnative?:NativeBag
Defined in: src/core/document-model/types.ts:269
noteNumber?
Section titled “noteNumber?”
readonlyoptionalnoteNumber?:true
Defined in: src/core/document-model/types.ts:310
§17.11.13 w:footnoteRef / §17.11.5 w:endnoteRef — inside note content:
render the OWNING note’s number here.
pageBreak?
Section titled “pageBreak?”
readonlyoptionalpageBreak?:boolean
Defined in: src/core/document-model/types.ts:324
ECMA-376 Part 1 §17.3.3.1 — w:br w:type="page". A forced page break: the
paragraph’s following content starts on a new page.
properties
Section titled “properties”
readonlyproperties:RunProperties
Defined in: src/core/document-model/types.ts:271
readonlytext:string
Defined in: src/core/document-model/types.ts:270