Skip to content

Interface: AddTextBoxOptions ​

Options for Slide.addTextBox. Geometry is in EMU.

Properties ​

height ​

height: number

Height in EMU (a:ext/@cy); must be positive.


left ​

left: number

Left edge in EMU (a:off/@x).


name? ​

optional name?: string

Shape name (p:cNvPr/@name); defaults to TextBox <id>.


text? ​

optional text?: string

Initial text; omitted/empty yields an empty paragraph.


top ​

top: number

Top edge in EMU (a:off/@y).


width ​

width: number

Width in EMU (a:ext/@cx); must be positive.