Skip to content

ppt run add

zmworm edited this page Apr 29, 2026 · 50 revisions

PowerPoint: Run - Add

Add a text run to a shape or a specific paragraph within a shape.

Type: run

Parent Path: /slide[N]/shape[M] or /slide[N]/shape[M]/paragraph[P]

Properties

Property Default Description
text (empty) Text content
font - Font family
size - Font size (pt)
bold false Bold text
italic false Italic text
color - Font color (hex RGB or theme)
spacing - Character spacing (points)
underline false single, double, heavy, dotted, dash, wavy, false/none
strikethrough / strike false single, double, false/none
baseline - super, sub, none, or percentage
superscript false Superscript text
subscript false Subscript text

Examples

# Add a run to a shape (appended to last paragraph)
officecli add slides.pptx /slide[1]/shape[1] --type run --prop text="appended text" --prop bold=true

# Add a run to a specific paragraph
officecli add slides.pptx /slide[1]/shape[1]/paragraph[1] --type run --prop text="inline run" --prop color=FF0000 --prop italic=true

# Add a run with underline and spacing
officecli add slides.pptx /slide[1]/shape[1] --type run --prop text="styled" --prop underline=double --prop spacing=1.5

# Add superscript text
officecli add slides.pptx /slide[1]/shape[1]/paragraph[1] --type run --prop text="2" --prop superscript=true --prop size=8

# Add a run with wavy underline and strikethrough
officecli add slides.pptx /slide[1]/shape[1] --type run --prop text="marked" --prop underline=wavy --prop strike=single

Based on OfficeCLI v1.0.64

Clone this wiki locally