ShapeTextBody
Defined in: src/core/document-model/types.ts:1453
wps:txbx (w:txbxContent) + wps:bodyPr — text inside a shape.
Properties
Section titled “Properties”anchor?
Section titled “anchor?”
readonlyoptionalanchor?:"t"|"b"|"ctr"
Defined in: src/core/document-model/types.ts:1459
autoFit?
Section titled “autoFit?”
readonlyoptionalautoFit?:boolean
Defined in: src/core/document-model/types.ts:1483
§20.1.10.28 a:spAutoFit — the SHAPE follows its text: its height is
whatever the text needs, whatever the stated box says.
chain?
Section titled “chain?”
readonlyoptionalchain?:object
Defined in: src/core/document-model/types.ts:1512
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.
readonlyid:string
readonlyseq:number
content
Section titled “content”
readonlycontent: readonlyBodyElement[]
Defined in: src/core/document-model/types.ts:1454
fitToBox?
Section titled “fitToBox?”
readonlyoptionalfitToBox?:boolean
Defined in: src/core/document-model/types.ts:1488
§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.
insetBottom?
Section titled “insetBottom?”
readonlyoptionalinsetBottom?:Pt
Defined in: src/core/document-model/types.ts:1458
insetLeft?
Section titled “insetLeft?”
readonlyoptionalinsetLeft?:Pt
Defined in: src/core/document-model/types.ts:1455
insetRight?
Section titled “insetRight?”
readonlyoptionalinsetRight?:Pt
Defined in: src/core/document-model/types.ts:1457
insetTop?
Section titled “insetTop?”
readonlyoptionalinsetTop?:Pt
Defined in: src/core/document-model/types.ts:1456
noWrap?
Section titled “noWrap?”
readonlyoptionalnoWrap?:boolean
Defined in: src/core/document-model/types.ts:1466
§20.1.2.1.1 a:bodyPr @wrap="none" — the lines run as far as their words
do, whatever the box’s width. A label placed where a page set it is sized
to the words it was measured from, and set in a face a little wider it
broke inside its one word.
shrinkToFit?
Section titled “shrinkToFit?”
readonlyoptionalshrinkToFit?:boolean
Defined in: src/core/document-model/types.ts:1505
§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.
upright?
Section titled “upright?”
readonlyoptionalupright?:boolean
Defined in: src/core/document-model/types.ts:1478
§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.
vertical?
Section titled “vertical?”
readonlyoptionalvertical?:"vert"|"vert270"
Defined in: src/core/document-model/types.ts:1472
§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.
readonlyoptionalwarp?:object
Defined in: src/core/document-model/types.ts:1497
§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.
adjust?
Section titled “adjust?”
readonlyoptionaladjust?:number
preset
Section titled “preset”
readonlypreset:string