Skip to content

ShapeTextBody

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

wps:txbx (w:txbxContent) + wps:bodyPr — text inside a shape.

readonly optional anchor?: "t" | "b" | "ctr"

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


readonly optional autoFit?: boolean

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

§20.1.10.28 a:spAutoFit — the SHAPE follows its text: its height is whatever the text needs, whatever the stated box says.


readonly optional chain?: object

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

wps:txbx @id / wps:linkedTxbx @id @seq — the chain of boxes this one belongs to. Text that overruns a box continues in the next of its chain; seq 0 is the box that holds the words, and the rest carry none of their own.

readonly id: string

readonly seq: number


readonly content: readonly BodyElement[]

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


readonly optional fitToBox?: boolean

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

§14.1.2.22 v:textpath @fitshape — the TEXT follows the shape: legacy WordArt is set at whatever size fills the box it was drawn in.


readonly optional insetBottom?: Pt

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


readonly optional insetLeft?: Pt

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


readonly optional insetRight?: Pt

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


readonly optional insetTop?: Pt

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


readonly optional shrinkToFit?: boolean

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

§20.1.10.42 a:normAutofit — the text SHRINKS to fit the box, and only shrinks: a size that already fits is left alone. PowerPoint writes the scale it settled on into @fontScale and that is applied at parse; this is for the text that arrives without one, which is every box of a diagram laid out from its layout part rather than from a cached drawing.


readonly optional upright?: boolean

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

§20.1.10.55 a:bodyPr @upright — the words stay level however far the shape is turned. bnc762542.xlsx turns each legend label a quarter and asks for this, and every reader draws those labels lying flat.


readonly optional vertical?: "vert" | "vert270"

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

§20.1.10.83 ST_TextVerticalType (a:bodyPr @vert) — text set along the box’s long axis rather than across it. vert reads top-to-bottom (turned a quarter clockwise), vert270 bottom-to-top.


readonly optional warp?: object

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

§20.1.9.10 a:prstTxWarp — DrawingML WordArt: the preset curve the text is bent through, and the a:avLst adj guide when the file states one. The warped text does not wrap and is stretched to fill the shape’s box, so the size its runs state stops deciding how large it is drawn. textNoShape is not carried: it is the enumeration’s “no warp” member, and a body under it is an ordinary text box.

readonly optional adjust?: number

readonly preset: string