-
Notifications
You must be signed in to change notification settings - Fork 517
ppt run add
zmworm edited this page Apr 29, 2026
·
50 revisions
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]
| 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 |
# 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=singleBased on OfficeCLI v1.0.64