TextBody
type TextBody = { anchor?: TextAnchoring; anchorCtr?: boolean; horzOverflow?: TextHorzOverflow; inset?: InsetRect; numCol?: number; p: Paragraph[]; rot?: DmlAngle; rtlCol?: boolean; spcCol?: PositiveCoordinate; spcFirstLastPara?: boolean; upright?: boolean; vert?: TextVerticalType; vertOverflow?: TextVertOverflow; wrap?: TextWrapping;};Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
anchor? |
TextAnchoring |
"t" |
Vertical anchoring/alignment of text within the shape. |
anchorCtr? |
boolean |
false |
Whether text is centered at the anchor point. |
horzOverflow? |
TextHorzOverflow |
"overflow" |
Horizontal overflow behavior. |
inset? |
InsetRect |
undefined |
Defines an inset or internal margins for a text box within a shape. |
numCol? |
number |
1 |
Number of text columns. |
p |
Paragraph[] |
undefined |
Array of paragraphs containing the text content. |
rot? |
DmlAngle |
0 |
Text rotation in 60,000ths of a degree (e.g., 5400000 = 90 degrees). |
rtlCol? |
boolean |
false |
Whether columns flow right-to-left. |
spcCol? |
PositiveCoordinate |
0 |
Spacing between columns in EMUs. |
spcFirstLastPara? |
boolean |
false |
Whether to apply spacing before first and after last paragraph. |
upright? |
boolean |
false |
Keep text upright regardless of shape rotation. |
vert? |
TextVerticalType |
"horz" |
Text orientation is vertical (top-to-bottom). |
vertOverflow? |
TextVertOverflow |
"overflow" |
Vertical overflow behavior. |
wrap? |
TextWrapping |
"square" |
Text wrapping behavior. |