ShapeTextBody
Defined in: src/core/document-model/types.ts:1327
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:1333
autoFit?
Section titled “autoFit?”
readonlyoptionalautoFit?: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.
chain?
Section titled “chain?”
readonlyoptionalchain?: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.
readonlyid:string
readonlyseq:number
content
Section titled “content”
readonlycontent: readonlyBodyElement[]
Defined in: src/core/document-model/types.ts:1328
fitToBox?
Section titled “fitToBox?”
readonlyoptionalfitToBox?: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.
insetBottom?
Section titled “insetBottom?”
readonlyoptionalinsetBottom?:Pt
Defined in: src/core/document-model/types.ts:1332
insetLeft?
Section titled “insetLeft?”
readonlyoptionalinsetLeft?:Pt
Defined in: src/core/document-model/types.ts:1329
insetRight?
Section titled “insetRight?”
readonlyoptionalinsetRight?:Pt
Defined in: src/core/document-model/types.ts:1331
insetTop?
Section titled “insetTop?”
readonlyoptionalinsetTop?:Pt
Defined in: src/core/document-model/types.ts:1330
shrinkToFit?
Section titled “shrinkToFit?”
readonlyoptionalshrinkToFit?: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.
upright?
Section titled “upright?”
readonlyoptionalupright?: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.
vertical?
Section titled “vertical?”
readonlyoptionalvertical?:"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.
readonlyoptionalwarp?: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.
adjust?
Section titled “adjust?”
readonlyoptionaladjust?:number
preset
Section titled “preset”
readonlypreset:string