Skip to content

Interface: TextContext ​

What a text body is read against, handed from a TextFrame to each paragraph and run: the part an edit marks dirty, the theme the resolved* getters resolve against, the relationships a hyperlink or a picture bullet resolves through, and the inheritance its runs fall back through.

Properties ​

ctx ​

ctx: ThemeContext

The theme the text resolves against: the colour maps, fontScheme, and the layout and master roots.


inherit ​

inherit: TextInheritance | null

What a run that sets no colour, size, face, bold or italic of its own inherits through, or null for text that inherits through nothing, such as a SmartArt point's.


part ​

part: Part

The part the text lives in.


rels ​

rels: Relationships | null

The owning part's relationships, or null for text read without them — a SmartArt drawing's cached text — whose run hyperlinks then report their raw @r:id, @action and @tooltip.